PC Review


Reply
Thread Tools Rate Thread

Checking if something is past due

 
 
=?Utf-8?B?Sm9uYXRoYW4=?=
Guest
Posts: n/a
 
      1st Nov 2006
I'm adding a function to an old Excel Macro. Basically, if Column H contains
Open and the date in Column C has passed, he wants the row to highlight
yellow. How do you check to see if a date has passed?
 
Reply With Quote
 
 
 
 
Bob D
Guest
Posts: n/a
 
      1st Nov 2006
Are you comparing dates in column C with a variable date input or just
today's date? Do the dates in column C include only dates in the past or do
they include future dates?

When you say "Open" for column H, are you referring to a stock price or the
text "Open"?

"Jonathan" <(E-Mail Removed)> wrote in message
news:FA1C39D8-F857-467B-847D-(E-Mail Removed)...
> I'm adding a function to an old Excel Macro. Basically, if Column H
> contains
> Open and the date in Column C has passed, he wants the row to highlight
> yellow. How do you check to see if a date has passed?



 
Reply With Quote
 
=?Utf-8?B?QWxiZXJ0?=
Guest
Posts: n/a
 
      1st Nov 2006
This should do the trick.

If Cells(Row, 8) = "Open" Then
If VBA.DateValue(Cells(Row, 3)) > VBA.Now Then
Cells(Row, 3).EntireRow.Interior.ColorIndex = 6
End If
End If

"Jonathan" wrote:

> I'm adding a function to an old Excel Macro. Basically, if Column H contains
> Open and the date in Column C has passed, he wants the row to highlight
> yellow. How do you check to see if a date has passed?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking to see if a date has past Howard Microsoft Access 3 28th Dec 2009 03:28 PM
PC won't go past "Checking NVRAM"... Graham_Comtek General 2 19th Jan 2008 05:02 AM
wath is defferent between past and past special help plz ?? =?Utf-8?B?TS4gQXJlZiBraGF5YmFy?= Microsoft Word Document Management 1 29th May 2006 09:21 AM
Change Past System Tray Past Item to Current Item rijj@bluefrog.com Windows XP General 1 14th Nov 2005 04:22 PM
Conflicting used space information when checking the drive property against marking all files and checking the marked file properties. elloko Windows XP Configuration 3 19th Dec 2004 05:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:50 AM.