+ Reply to Thread
Results 1 to 5 of 5

Compare column on separate sheets in workbook and highlight differences

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Compare column on separate sheets in workbook and highlight differences

    Hi all,

    I'm a complete VBA newbie, and I'm trying to learn how to do things as I go. I was wondering how I would get the following done-

    I have a workbook with two sheets, and each sheet contains multiple columns. I would like to find out how to write a script so that I can compare numbers in column A (ignoring all other columns) on both sheets, and highlight any values not on both sheets in red.

    I have been able to do this with conditional formatting, but I would like to see if this is possible using VBA.

    Thanks!

  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: Compare column on separate sheets in workbook and highlight differences

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Compare column on separate sheets in workbook and highlight differences

    Hi John,

    Sorry about the lag in reply- that solution worked perfectly- thank you!

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

    Re: Compare column on separate sheets in workbook and highlight differences

    You're welcome. Glad to hear it did, and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

  5. #5
    Registered User
    Join Date
    03-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Compare column on separate sheets in workbook and highlight differences

    Done, thanks again!

+ 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