+ Reply to Thread
Results 1 to 4 of 4

Find and Replace in multiple sheets

  1. #1
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Find and Replace in multiple sheets

    I have 7 sheets where I want to find a value in Column A and replace with another value in each sheet

    I believe that I need an array of some sort, to which I am not sure how.

    For simplicity:

    Sheet1
    Sheet2
    Sheet3
    Sheet4
    Sheet5
    Sheet6
    Sheet7

    InputBox for Find value
    InputBox for Replace value

    Appreciate any help or feedback.

    Josh

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,447

    Re: Find and Replace in multiple sheets

    Hi Josh,

    In the Find and Replace dialog there is a button called Options >>. Click on this and look at the "Within" dropdown. Pick Workbook instead of Sheet.

    Does this do what you need? The only reason it wouldn't is if you can only search and replace in Column A of all sheets.

    In the Find and Replace dialog you could also click on Find All. Then you can sort this list by the Cell it was found. You could then go down and only replace if it was found in a cell address that started with $A.

    hope this helps. We need a little more info to give a better answer.
    Last edited by MarvinP; 06-11-2011 at 02:08 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Re: Find and Replace in multiple sheets

    I need to be able to do it thru code.

    Right now when a new customer is entered into the system, the form increments the unique ID by one number and all the ID's are 11 digits.

    When the company provides a tax id, then an actual account is setup, at this time, I would need to search all 7 sheets to find the temporary account number that was setup and replace with the new one.

    So

    1.) Have an input box ask what the temporary account number is (this i can do)
    2.) Example (00000000012)
    3.) Then go to all 7 sheets (Column A), find (00000000012) and replace with
    4.) Input box for the new account number (e.g.... 12345678912)

    Because this is a unique ID, it is only going to be on each sheet once.

    Hope this helps, please let me know if clarification is still needed.

    Thanks,

    Josh

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,447

    Re: Find and Replace in multiple sheets

    Hi Josh,

    Record a macro that Searches and Replaces All using Workbook instead of Sheet. Use the value of your input box(s) for the Search and Replace terms and hang the code on a Button.

    See the attached for proof.
    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)

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