Results 1 to 3 of 3

Check for today's date and highlight

Threaded View

  1. #1
    Registered User
    Join Date
    01-24-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    61

    Check for today's date and highlight

    Private Sub Workbook_Open()
    
    Sheets("dates").Activate
    Cells.Find(Date).Activate
    Rows(ActiveCell.Row).Select
    
    End Sub
    Hi people,

    I would like to use a event handler in a workbook of mine. The workbook contains dates for almost every day. I would like excel to highlight the row for today's date.

    I figured how to create it, but i am stuck in the case where there is no data for today. Say i have Jan1, Jan2 then Jan4. So if i open the book on Jan3 it would give an error. In that case i would like excel to highlight Jan4.

    Any help will be useful..

    Thanx..
    Last edited by navwelch; 06-25-2013 at 11:38 AM.

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