using VB in excel

Soldato
Joined
8 Sep 2003
Posts
23,180
Location
Was 150 yds from OCUK - now 0.5 mile; they moved
Hi guys

I have a spreadsheet with dates. I want to run a program to highlight todays date in red, yesterdays in yellow, day before in blue etc etc.

How can I do this automatically when the spreadsheet is opened?
 
Right I think the conditional formatting should be easier.

I have a row of columns witht he date listed. If the date is in 2 days time how would I set to conditional string to colout the box yellow.
If the date in tomorrow, how do i set it blue?
And if the date is today, how do i set it green?

Can anyone tell me the string info the type in the box please.

Thanks!
 
Right got that sorted
Thanks

Just one problem. I didnt think of weekends.. any idea how to get the program to not count sat/sun......think it maybe something to do with workdays....but cannot work it out.
 
Back
Top Bottom