Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to write a macro that will set a different background color for every other row of the selection (not of the whole worksheet). I figured that I would just need to loop through each cell of the selection, test whether it's in an even-number row, and if so, set its background color. So if the selection covers 3 columns, every other set of 3 cells in the selection would get a background color. But... there doesn't seem to be a property to test the row number of a given cell! So how could I work this out? Thanks in advance for your help. Raph |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to change background color, font color and remove/ add bo | Excel Discussion (Misc queries) | |||
how can I conditionally change font color, or background color? | Excel Worksheet Functions | |||
Cell background color (interior color) setting not working | Excel Programming | |||
Default Border, Font Color, and Cell Background Color | Excel Discussion (Misc queries) | |||
Excel 2003 Font Color and Background Color | Excel Discussion (Misc queries) |