ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Macro - Help!!! (https://www.excelbanter.com/excel-programming/330879-excel-macro-help.html)

Auditor[_2_]

Excel Macro - Help!!!
 
Hi:
I am trying to create a Macro for the following:

I have a spreadsheet wherein Cell C3 to Q3, I have weekdays (Mon, Tues,
Wed, Thurs, Fri, Sat, Sun). The value of this range is populated based
on formula on another range of cells.

Based on the above weekday value(ex: Sat, Sun or Mon), I want few other
cell ranges to be shaded with a specific color unique to the weekday
value.

Any help with code is greatly appreciated

thanks
Shiv


Bob Phillips[_7_]

Excel Macro - Help!!!
 
Sounds like a job for conditional formatting, no VBA needed.

Just use a formula like

=TEXT(A2,"ddd")=A$1

--
HTH

Bob Phillips

"Auditor" wrote in message
oups.com...
Hi:
I am trying to create a Macro for the following:

I have a spreadsheet wherein Cell C3 to Q3, I have weekdays (Mon, Tues,
Wed, Thurs, Fri, Sat, Sun). The value of this range is populated based
on formula on another range of cells.

Based on the above weekday value(ex: Sat, Sun or Mon), I want few other
cell ranges to be shaded with a specific color unique to the weekday
value.

Any help with code is greatly appreciated

thanks
Shiv





All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com