+ Reply to Thread
Results 1 to 2 of 2

compare data from multipl sheets in one workbook with multiple sheets in another wokbook

  1. #1
    Registered User
    Join Date
    07-03-2015
    Location
    brisbane
    MS-Off Ver
    2003
    Posts
    28

    Question compare data from multipl sheets in one workbook with multiple sheets in another wokbook

    Gidday All

    I have code that will look up a value in a column range in one sheet (target) against one column range over multiple sheets in another workbook (source) and paste the result into the same row of the target.
    I have one sheet that i need to compare two column ranges in the target against the source, like an OR statement. when i run the original code twice it removes all the matches from the previous search.

    Is there also another more efficient way of setting up the code so that I don't have to run this code multiple times for multiple sheets in the target workbook? Unfortunately the data to compare in the target workbook is not always in the same column range, nor where the result is pasted.

    original code
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: compare data from multipl sheets in one workbook with multiple sheets in another wokbo

    Hi vbapadawan ,

    It is difficult to follow your code without the workbooks, can you post them? (Sanitized if confidential data, and small sample is better).

    I think there is a better way of doing the job, by building an array within the macro, then posting once.

    I hope this helps, please let me know!

    Regards,

    David

    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.

    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    If several people have responded, when you reply please make it clear WHO you are responding
    to by mentioning their name.

+ 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. Compare multiple data points in row _ multiple sheets _ output different information
    By floydian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 08:52 AM
  2. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  3. Replies: 4
    Last Post: 04-18-2013, 07:25 AM
  4. Copy Values only from Multiple Wkbs all sheets into 1 wokbook same sheets
    By katkins0429 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2013, 11:40 AM
  5. [SOLVED] compare data from two different sheets in same workbook
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-26-2012, 03:43 PM
  6. Pulling infomation off of multipl sheets on to TOB
    By boll55 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-24-2012, 03:32 PM
  7. How do I compare cells in multiple sheets in a workbook
    By rs56369 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2008, 06:30 AM
  8. Replies: 4
    Last Post: 08-17-2006, 01:30 AM

Tags for this Thread

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