+ Reply to Thread
Results 1 to 1 of 1

Auto highlight on startup

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    75

    Question Auto highlight on startup

    Hi guys

    I've had a blank and need a hand with some coding...

    I have a spreadsheet which, in essence, is a calendar of dates...

    I'm after a code that will - on opening the wkbook - automatically highlight the row that matches todays date.

    I no i'll have a cell with =today() an link the source code into that...i just cant think what the code will be?!

    Help!

    TVM

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Auto highlight on startup

    Hey superdonk,

    if the cell is always the same, you just need this (let's say it's cell A1 on a worksheet named "MyWorkSheet"):
    Please Login or Register  to view this content.
    Make sure you put it in the ThisWorkbook module in the code window.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Auto highlight on startup

    why not conditional format the cells , say dates are in col a starting a1 and you want the row that matches todays date which happens to be in a20
    select a1 conditional format as formula option =$a1=today() copy cf across and down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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