Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In a VBA script
Sub SelectCells() X=3 Range("A1:A" & X).Select EndSub would do the same as Sub SelectCells() Range("A1:A3").Select EndSub I'm wondering is it possible to do something like this? Sub SelectCells() X=3 Y=4 '??? Range("A"&X":A" & Y).Select??? EndSub so that it gives the same as Sub SelectCells() X=3 Y=4 'Range("A3:A4").Select EndSub Matt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Syntax for selecting a textbox within a chart? | Charts and Charting in Excel | |||
Selecting a range of values on pivot table attribute with a macro | Excel Discussion (Misc queries) | |||
Range used in a macro needs to be variable | Excel Worksheet Functions | |||
variable range in a macro | Excel Discussion (Misc queries) | |||
Is it possible to set a variable range in a macro? | About this forum |