Prob Reg. Excel Macro..

Closed
Joy - 14 Nov 2009 à 06:17
sharpman Posts 1021 Registration date Saturday 23 May 2009 Status Contributor Last seen 20 October 2010 - 14 Nov 2009 à 16:36
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
Related:

1 response

sharpman Posts 1021 Registration date Saturday 23 May 2009 Status Contributor Last seen 20 October 2010 183
14 Nov 2009 à 16:36
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