+ Reply to Thread
Results 1 to 8 of 8

Macro to find and update information across multiple sheets and multiple workbooks

  1. #1
    Forum Contributor
    Join Date
    03-14-2016
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    102

    Macro to find and update information across multiple sheets and multiple workbooks

    Hello,

    I have developed a macro that aggregates information from multiple workbooks and compiles the data I am looking for into one workbook on one sheet.

    I now want to take that data and find it in a worksheet(there are multiple ones) in a workbook that I specify and update that information. Is there a way to do this?

    For example: If the macro ran and my worksheet now had Cell A6=Dog and A7=Golden Retriever, I want it to search worksheets in a specified workbook for Dog then replace whatever was in the next cell with Golden Retriever.

    Thank you in advance.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Or this?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Don't expect anyone to work on this with such a vague description of the requirement. The following is one admittedly absurd interpretation of the requirement.

    I have to search every cell pairing (A1 & A2, A2 & A3, A3 & A4 ... XFC1048576 & XFD1048576) to get the word pairs to look for, One of these pairings is Dog, Golden Retriever. There are over 17 billion other potential pairs.

    Then for each pair I need to search every row and every column in every sheet on the target workbook for the first word in the pair. Again there are 17 billion pairs on each sheet.

    Assuming only one destination worksheet, that's approximately 29 x 10^19 calculations. I'm fairly certain that's not what you want.

    If you can include sample workbooks (both source and target) and define the parameters a bit more like what ranges to look at on both source and target, it would make the problem easier to understand and work on.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  5. #5
    Forum Contributor
    Join Date
    03-14-2016
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    102

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    John Davis, thank you. We are fairly close here.

    To help make it a little clearer (and this is the best I can do) I want the code to take whatever it finds in Column B of WORKSHEET A and search all of Column C in WORKSHEET for a match. IF a match is found I want it to update the data in column F of WORKSHEET B.

    Hope this helps a little, thank you very much for working with me here.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Quote Originally Posted by maxhecht2 View Post
    John Davis, thank you. We are fairly close here.

    To help make it a little clearer (and this is the best I can do) I want the code to take whatever it finds in Column B of WORKSHEET A and search all of Column C in WORKSHEET for a match. IF a match is found I want it to update the data in column F of WORKSHEET B.

    Hope this helps a little, thank you very much for working with me here.
    What would go in Column F?

  7. #7
    Forum Contributor
    Join Date
    03-14-2016
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    102

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Quote Originally Posted by JOHN H. DAVIS View Post
    What would go in Column F?
    So if an entry in Column B of the WORKSHEET A matches an entry in Column C of Worksheet B take data from Column C of WORKSHEET A and replace put it into that row in Column F of WORKSHEET B

    Thanks!

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to find and update information across multiple sheets and multiple workbooks

    Maybe:

    Please Login or Register  to view this content.

+ 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. [SOLVED] How to update information to multiple sheets
    By Regal383 in forum Excel General
    Replies: 1
    Last Post: 01-20-2016, 04:02 AM
  2. Vba/macro to combine multiple workbooks with multiple sheets into one workbook
    By ReshayM in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-03-2015, 01:00 PM
  3. Replies: 6
    Last Post: 12-07-2014, 07:09 PM
  4. [SOLVED] Run Same VBA Macro Code On Multiple Sheets of Multiple workbooks
    By AnnaDana in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-28-2013, 10:28 AM
  5. Replies: 14
    Last Post: 05-16-2013, 08:47 AM
  6. Replies: 1
    Last Post: 09-05-2012, 02:23 PM
  7. Update information on multiple sheets
    By GaidenFocus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 06:06 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