Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
add ranges
Hi, Id like to know if its possible with vba to add number of rows to
a given range so I can then select those cells. If my range is "A3" and I want to add 30 rows, so A3 + 30 = A3:A33. The number to be added is not static and changes depending on previous results. regards Robert |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
add ranges
You need to use rows.count Set Myrange = Range("A1:A10") Set Myrange = Myrange.Resize(Myrange.Rows.Count + 30) -- joel ------------------------------------------------------------------------ joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=149542 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how copy formula that contains ranges so ranges do not overlap | Excel Worksheet Functions | |||
Named ranges scope / workbook/worksheet level named ranges- changeswith variable use... | Excel Programming | |||
union of named ranges based only on the names of those ranges | Excel Programming | |||
Copy data in named ranges to a newer version of the same template to identical ranges | Excel Programming | |||
named ranges - changing ranges with month selected | Excel Programming |