+ Reply to Thread
Results 1 to 5 of 5

Highlight latest entry in a workbook

  1. #1
    Registered User
    Join Date
    11-04-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    3

    Highlight latest entry in a workbook

    We have a list that gets updated every couple of days, currently we manually highlight the latest entry to show that its the new. And when a new entry is added we manually unhighlight the "old new entry" and highlight the new entry. I was hoping there was a way to make this process automatically. I was thinking conditional formatting or maybe a script i can run. Thanks in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,696

    Re: Highlight latest entry in a workbook

    I would suggest you upload a sample workbook.

    I take it the latest entry is not necessarily the last entry. If that's the case, how do you identify the latest entry? When it gets updated (every couple of days), does that mean one new row is added? Or several rows?

    Maybe some more clarification around the process and the data would prove useful.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-04-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Highlight latest entry in a workbook

    Thanks for the quick reply.

    We update the worksheet whenever a customer needs to be added. And no the latest entry is not necessary the last entry. It really depends on which column it needs to go. In the sample the new customer is Statoil, highlighted in red, and when a new customer gets added i will manually unhighlight statoil and highlight which ever the new customer is, for example Halliburton.

    Hopefully this clears up my question a bit. Again, I really appreciate the help.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,696

    Re: Highlight latest entry in a workbook

    There doesn't seem to be an awful lot of logic in the process.

    Still, it's doable with a worksheet change event. Unfortunately, I'm not near a computer at the moment.

    In brief, when any cell changes, you need to clear the interior colour of ALL the cells. Then you change the colour of the Target cell.

    It's two lines of code but I can't think of the syntax.

    Something like:

    Please Login or Register  to view this content.

    You can record a macro to check the syntax and colour indexes.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    11-04-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Highlight latest entry in a workbook

    Okay I'm a complete noob when talking about scripts but i will try to make it work with the information given. At least now i now that it's possible. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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