LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Scott Steiner
 
Posts: n/a
Default Conditionally setting background color of a cell

Hi,

I made a calendar using excel. In each cell there is hard coded
conditional formatting to test if the day is a Saturday or a Sunday. If
this is true then the background color is set to red i.e. I have hard
coded the color to red by pressing on the "Format..." button in the
conditional formatting dialog and setting the the background color to
red. This is done for each cell.

This isn't very flexible at all though since I might want to change the
color from red to something else. So my question is, how can I set the
color of a cell that meets my "holiday condition" in a more flexible
way, maybe using VB?

Thanks for any tips.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I change cell background color only when cursor is over it Victor Cassano Excel Discussion (Misc queries) 1 August 10th 05 09:42 PM
Setting Precision when using &"Characters"& in a cell reference FirstVette52 Excel Discussion (Misc queries) 2 July 5th 05 04:45 PM
Cell Background Color Change according to numerical value jrd269 Excel Discussion (Misc queries) 11 May 31st 05 09:46 PM
background color of my cell does not change Colorblinded Excel Discussion (Misc queries) 2 March 27th 05 04:55 PM
setting cell color Wazooli Excel Worksheet Functions 9 January 19th 05 02:21 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"