+ Reply to Thread
Results 1 to 3 of 3

Macro or Code to find a replace?

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    London, England
    MS-Off Ver
    2024
    Posts
    124

    Macro or Code to find a replace?

    I run many reports each day and I spend a lot of time finding and replacing the data to fit our needs. Attached is an example of the before and after results I am looking at in each and every report. Is there a way I can create my report and at the end run code or a macro to find and replace the VIP & Agency columns without having to manually do it over and over? Please note that the data is forever changing and I will need to update the 'master' data from time to time.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,702

    Re: Macro or Code to find a replace?

    You'll have to extend (Add to) the arrays in the "Agency" code. Clean (delete commas and periods) in Column D. Do not leave trailing spaces when doing that.

    See attached
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,702

    Re: Macro or Code to find a replace?

    BTW, if you have a sheet with the long names in column A and the abbreviations in column B, you don't have to change the code every time you get a new name.
    Code assumes that you have headers in Sheet1, columns A and B
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. How to create macro code for find and replace.
    By kimudao in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-10-2015, 10:55 AM
  2. How to create macro code for find and replace.
    By kimudao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2015, 01:03 AM
  3. [SOLVED] How to create macro code for find and replace.
    By kimudao in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-09-2015, 11:01 PM
  4. use macro to find and replace specific code in vba
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2014, 09:46 AM
  5. [SOLVED] Need help with VB/Macro code for multiple find and replace within one single column
    By The Saw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 01:26 PM
  6. find and replace macro, modifying code in engagement
    By alan audit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 04:56 AM
  7. Macro Find and Replace Code
    By ecloje in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2010, 12:46 PM

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