Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd use:
Dim iRow As Long Dim myRng As Range iRow = 5 'or activecell.row With ActiveSheet Set myRng = Intersect(.Rows(iRow), .Range("a1,c1,e1,h1,k1").EntireColumn) End With myRng.Select EricBB wrote: how can i edit the below line so that row no. will be a variable. i.e. if i select cell "A5" the "3" will become 5. Range("A3,C3,E3,H3,K3").Select thanks for any help. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keyboard Navigation - selecting non-adjacent rows | Excel Discussion (Misc queries) | |||
Selecting all cells using macro | Excel Discussion (Misc queries) | |||
By selecting cells adjacent to cells tally sheet | Excel Worksheet Functions | |||
selecting adjacent cells | New Users to Excel | |||
selecting non adjacent cells | Excel Worksheet Functions |