Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
what are you trying to do with this selection? -- Regards Frank Kabel Frankfurt, Germany "Tom" schrieb im Newsbeitrag ... Hi All How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
actually every other row!
Thanks. -----Original Message----- Hi All How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim rng as Range, cell as Range
for each cell in UsedRange.Columns(1).Cells if cell.row mod 2 = 0 then if rng is nothing set rng = cell else set rng = union(rng,cell) end if end if Next if not rng is nothing then rng.EntireRow.Select End if -- Regards, Tom Ogilvy "Tom" wrote in message ... actually every other row! Thanks. -----Original Message----- Hi All How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey Frank
I want to shade them! I want to shade every other row. Thanks. -----Original Message----- Hi what are you trying to do with this selection? -- Regards Frank Kabel Frankfurt, Germany "Tom" schrieb im Newsbeitrag ... Hi All How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
for this I would use conditional formating. See: http://www.cpearson.com/excel/banding.htm -- Regards Frank Kabel Frankfurt, Germany "Tom" schrieb im Newsbeitrag ... Hey Frank I want to shade them! I want to shade every other row. Thanks. -----Original Message----- Hi what are you trying to do with this selection? -- Regards Frank Kabel Frankfurt, Germany "Tom" schrieb im Newsbeitrag ... Hi All How can i creat a macro that will select every other colum in the worksheet? Thanks in advance. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
after selecting 50 rows of a column i can't reference the cells in the rows | New Users to Excel | |||
Macro selecting blank rows/columns | Excel Programming | |||
selecting multiple rows within a Macro | Excel Programming | |||
selecting multiple rows within a Macro | Excel Programming | |||
selecting multiple rows within a Macro | Excel Programming |