+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting in VBA for expired dates

  1. #1
    Registered User
    Join Date
    06-01-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy Conditional Formatting in VBA for expired dates

    Hi there

    I am attempting to create, what might be a very simple macro in VB for Excel 2007, but I am having a lot of trouble.

    I have two columns that need to be referenced and conditional formatting applied to one of them (column K).

    The first column (H) shows the stage. I am only concerned with highlighting items in column K that are not listed as Engaged or Lost & Leaked in column H. The ulimate aim is to highlight expired dates (dates less than today) in column K for possible work that has not been completed.

    I have tried to put it as simply as I can below:


    'If cell in column H is not equal to engaged or lost and leaked then look at column K

    'If cell in column K is blank then do nothing

    'If cell is less than NOW()

    This needs to loop until there are no values in Column H.

    Any direction or help with this would be much appreciated!

    Anna

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: Conditional Formatting in VBA for expired dates

    Do you particularly need VBA rather than just applying a conditional format to the column?
    Everyone who confuses correlation and causation ends up dead.

+ 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