Prob Reg. Excel Macro..

[Closed]
Report
-
Posts
1021
Registration date
Saturday May 23, 2009
Status
Contributor
Last seen
October 20, 2010
-
Hello,
I have a prob regarding Macro of excel 2007.
suppose i have a Excel tab(xyz) which have some column(name, add, Date).
i want to create a macro which will mark total row as RED if the date is today.

thanks in advance.
Joy Bhadra

1 reply

Posts
1021
Registration date
Saturday May 23, 2009
Status
Contributor
Last seen
October 20, 2010
182
look at conditional formatting.
highlight the cells that you wish to be red when the date in the cell in question is todays date.
click on conditional formatting/new rules
select 'use a formula to determine which cells to format'
click on the little spreadsheet icon.
click on the cell with the date that you need to use.
put the following formula in the field after the cell reference - in my case =$C$3

so, the field should look like this =$C$3 = today()

click on the spreadsheet icon again.
click on the format button bottom right.
and select the format you wish to appear in the row/cells when the date is today.
click on ok, then apply.

now, test the results by putting todays date in the cell that will have the trigger date in.

hope you can decipher the above :-)
hope it helps

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!