Atholl
Active Member
- Joined
- May 19, 2002
- Messages
- 434
Hi all,
I have a grid of numbers from C:10 to R:96. The numbers range from 0 to 5 and I have a piece of code "ConditionalDoc" which assigns a fill colour depending on the number in the cell. At present, I have code which selects each cell in the grid individually in turn and performs the fill colour code:
Range("C80").Select
ConditionalDoc
Range("C81").Select
ConditionalDoc
Range("C82").Select
ConditionalDoc
etc....
Is there a quicker way to select all of the cells and perform ConditionalDoc on each?
Atholl
I have a grid of numbers from C:10 to R:96. The numbers range from 0 to 5 and I have a piece of code "ConditionalDoc" which assigns a fill colour depending on the number in the cell. At present, I have code which selects each cell in the grid individually in turn and performs the fill colour code:
Range("C80").Select
ConditionalDoc
Range("C81").Select
ConditionalDoc
Range("C82").Select
ConditionalDoc
etc....
Is there a quicker way to select all of the cells and perform ConditionalDoc on each?
Atholl