+ Reply to Thread
Results 1 to 3 of 3

Need to Highlight New Entries Between 2 Sheets in Same Workbook

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Springfield, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to Highlight New Entries Between 2 Sheets in Same Workbook

    First, let me say I am relatively new to Excel and have no experience with VBA. But I am a quick learner and willing to try anything.

    I download a report every couple of hours. This report changes each time and I need to compare the newest report against the last saved report and highlight the new entries on Sheet2.

    Every time I download the report, I want to delete Sheet1, rename Sheet2 to Sheet1, and paste the newest report as Sheet2. (I can do that part manually) I need to compare Column F, named "Incident #" on both sheets and highlight any rows on Sheet2 that do not appear on Sheet1.

    Is this possible?


    15days Sheet 1.xlsx

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need to Highlight New Entries Between 2 Sheets in Same Workbook

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

    The macro will create a new sheet called Temp and do the comparisons. It will return to you the rows that are not present in 1 but present in 2. If the sheet Temp already exists, the macro will delete it and start afresh each time you run the macro.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Springfield, MA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to Highlight New Entries Between 2 Sheets in Same Workbook

    Thank you! It worked like a charm. This will save me a ton of time every day.

+ 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