Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Trying to change these rows to green
Rows(Array("10", "16", "26")).Interior.ColorIndex = 4 but this doesnt work! Grateful for help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Range("10:10,16:16,26:26").Interior.ColorIndex = 4 In article , General wrote: Trying to change these rows to green Rows(Array("10", "16", "26")).Interior.ColorIndex = 4 but this doesnt work! Grateful for help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks; thats how I used to do it, but I am trying to understand arrays more,
starting with basic stuff. Appreciate your help. "JE McGimpsey" wrote: One way: Range("10:10,16:16,26:26").Interior.ColorIndex = 4 In article , General wrote: Trying to change these rows to green Rows(Array("10", "16", "26")).Interior.ColorIndex = 4 but this doesnt work! Grateful for help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is one way to use the array and color multiple rows.
Sub RwArry() RwAry = Array(Rows(1), Rows(3), Rows(5)) For i = 0 To 2 RwAry(i).Interior.ColorIndex = 3 Next End Sub "General" wrote: Thanks; thats how I used to do it, but I am trying to understand arrays more, starting with basic stuff. Appreciate your help. "JE McGimpsey" wrote: One way: Range("10:10,16:16,26:26").Interior.ColorIndex = 4 In article , General wrote: Trying to change these rows to green Rows(Array("10", "16", "26")).Interior.ColorIndex = 4 but this doesnt work! Grateful for help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) | Excel Programming | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming |