Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
rows().select VBA question
How can I make this work, keep getting errors.
Sub test2() a = 327 b = 336 Rows(a:b).Select End Sub I just want to select/delete severals row at once at a variable spot. Cheers, Harold |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
rows().select VBA question
On Nov 28, 9:49 am, mohavv wrote:
How can I make this work, keep getting errors. Sub test2() a = 327 b = 336 Rows(a:b).Select End Sub I just want to select/delete severals row at once at a variable spot. Cheers, Harold it's Rows(a & ":" & b).select hth Carlo |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
rows().select VBA question
How can I make this work, keep getting errors.
Sub test2() a = 327 b = 336 Rows(a:b).Select Just a different method without strings: Sub Demo() Dim a As Long, b As Long a = 327 b = 336 Rows(a).Resize(b - a + 1).Select End Sub -- HTH :) Dana DeLouis "mohavv" wrote in message ... How can I make this work, keep getting errors. Sub test2() a = 327 b = 336 Rows(a:b).Select End Sub I just want to select/delete severals row at once at a variable spot. Cheers, Harold |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannot select rows in VBA | Excel Discussion (Misc queries) | |||
How can i randomly select 780 rows from 4000 rows of data | Excel Worksheet Functions | |||
select rows | Excel Worksheet Functions | |||
VBA select case question | Excel Discussion (Misc queries) | |||
Unable to select rows in the repeat rows on top option | Excel Discussion (Misc queries) |