Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Friends,
i would like to have a command or vba-code for highlighting alternate row. e.g. a1..h1, a3...h3, a5...h5, a7...h7 thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See if this helps:
http://office.microsoft.com/en-us/ex...CL100570551033 "gopal" wrote: Dear Friends, i would like to have a command or vba-code for highlighting alternate row. e.g. a1..h1, a3...h3, a5...h5, a7...h7 thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Since you are not doing an entire row, consider this method by Chip Pearson:
http://www.cpearson.com/excel/banding.htm Mike F "gopal" wrote in message ... Dear Friends, i would like to have a command or vba-code for highlighting alternate row. e.g. a1..h1, a3...h3, a5...h5, a7...h7 thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here is some code that will do what you want
Sub banding() Dim i As Long Dim ws As Worksheet Set ws = Worksheets("Sheet1") For i = 1 To 5 Step 2 ws.Range("A" & i & ":H" & i).Interior.ColorIndex = 37 Next End Sub -- Gary "gopal" wrote in message ... Dear Friends, i would like to have a command or vba-code for highlighting alternate row. e.g. a1..h1, a3...h3, a5...h5, a7...h7 thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I shade each alternate Excel row without selecting each? | Excel Discussion (Misc queries) | |||
Excel Macro / IE Form / Alternate to .Value | Excel Programming | |||
MS Excel counting alternate cells | Excel Discussion (Misc queries) | |||
How can I alternate row colors in Excel and keep the effect? | Excel Discussion (Misc queries) | |||
How to highlight alternate rows | New Users to Excel |