Array help

  • Thread starter Thread starter General
  • Start date Start date
G

General

Trying to change these rows to green

Rows(Array("10", "16", "26")).Interior.ColorIndex = 4

but this doesnt work! Grateful for help.
 
Thanks; thats how I used to do it, but I am trying to understand arrays more,
starting with basic stuff. Appreciate your help.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top