I am trying to select a series of rows from row 3 to row "row", where "row" is a variable.
i.e. some variant of....![]()
Rows.select("3:row")
perhaps.
Any help is greatly appreciated. Thanks a lot.
I am trying to select a series of rows from row 3 to row "row", where "row" is a variable.
i.e. some variant of....![]()
Rows.select("3:row")
perhaps.
Any help is greatly appreciated. Thanks a lot.
Last edited by VBA Noob; 01-21-2008 at 03:50 PM.
Let r be some calculated row number, then
![]()
Rows("3:" & r).Select
Ben Van Johnson
Try this :
Where Range A1 contains the last rownumber of the ranges you want to select.![]()
Sub test() Range("3:" & Range("A1").Value).EntireRow.Select End Sub
Erik
In most cases it is unnecessary to actually select ranges in VBA.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks