View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leo Heuser[_2_] Leo Heuser[_2_] is offline
external usenet poster
 
Posts: 111
Default Selecting non-adjacent rows

Jon

Here's one way:

Sub test()
Dim FormatRange As Range

With Sheets("Sheet1")
Set FormatRange = Union(.Rows(3), .Rows(6), .Rows(9))

FormatRange.Interior.ColorIndex = 3
End With

End Sub


--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.

"Jon" skrev i en meddelelse
...
How do I programmatically select non-adjacent rows, in
order to change the format?