Increase a range size by X rows and x Columns...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Suppose I have a single cell starting range of "B10"

Now suppose I need to increase this range size by a specific number of rows and columns programatically. How can I obtain the ending range address without actually making a selection?

For example, start range "B10"

Increase rows: 5 and increase columns: 3
New range: B10:D15

Please help...thanks in advance.
 
Hi quartz

You can use resize

Sub test()
MsgBox Range("B10").Resize(6, 3).Address
End Sub

--
Regards Ron de Bruin
http://www.rondebruin.nl


quartz said:
Suppose I have a single cell starting range of "B10"

Now suppose I need to increase this range size by a specific number of rows and columns programatically. How can I obtain the
ending range address without actually making a selection?
 
offset - no (double duh!), resize as Ron suggested.

--
Regards,
Tom Ogilvy

quartz said:
Nevermind. Sorry, offset method (duh!). Please disregard post.
rows and columns programatically. How can I obtain the ending range address
without actually making a selection?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top