Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Comparing Worksheets--Help!!

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is there a way to quickly compare duplicate worksheets for accuracy?

    In other words, I am converting 2 separate worksheets, BUT, each worksheet is suppose to contain the same data.

    Anyway to quickly compare these 2 worksheets?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    The following seems to work OK and will highlight data on sheet2 that doesn't match that on sheet1. Run from a command button or via the macro dialog box: -

    Dim c As Range

    Application.ScreenUpdating = False

    For Each c In Sheet2.UsedRange
    If c.Value <> Sheet1.Range(c.Address) Then
    c.Interior.ColorIndex = 3
    End If
    Next c

    Application.ScreenUpdating = True

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •