+ Reply to Thread
Results 1 to 3 of 3

Help with VBA mass find and replace code for exact numbers

  1. #1
    Registered User
    Join Date
    03-03-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    2

    Help with VBA mass find and replace code for exact numbers

    I found the code below, it works but its not looking for exact numbers. I have a huge excel document with one column labeled CITY, the names of the cities have been coded. I have another excel document that decodes the city to the actual name. (the actual list is much bigger)

    example:
    Doc 1

    CITY
    44516
    44
    6

    Doc 2

    CITY CODE
    Seattle 44
    Boise 44516
    Salt Lake 6


    The problem with the code is that its not looking for exact numbers. So anytime it sees a 6 it enters Salt Lake.

    The code is...


    Please Login or Register  to view this content.
    Last edited by mguti; 03-03-2016 at 02:03 AM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Help with VBA mass find and replace code for exact numbers

    Quote Originally Posted by mguti View Post
    I found the code below, it works but its not looking for exact numbers.
    Really with such data layouts?

    Try change to
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-03-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    2

    Re: Help with VBA mass find and replace code for exact numbers

    Perfect! thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mass Find Replace VBA
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 08:23 AM
  2. Mass Find and Replace?
    By Kinanik in forum Excel General
    Replies: 5
    Last Post: 06-12-2012, 01:49 PM
  3. [SOLVED] Excel 2007 : Mass Find and Replace
    By kikokazuma in forum Excel General
    Replies: 4
    Last Post: 04-30-2012, 08:43 AM
  4. Mass find and replace
    By Watoth in forum Excel General
    Replies: 1
    Last Post: 11-01-2010, 02:09 PM
  5. Mass find and replace
    By coletteno1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-17-2010, 07:27 AM
  6. Mass Find and Replace Macro
    By Singularity7250 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2010, 08:11 AM
  7. Mass Find & Replace Script?
    By TyneeTom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-24-2009, 03:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1