![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Arizona
Posts: 68
|
How do you select several rows using a variable?
e.g activeworkbook.sheets("sheet1").range("firstrow","firstrow".end(xlup)).select |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Dim iFirst As Integer
Dim iLast As Integer iFirst = 3 iLast = 5 Range(Cells(iFirst, 1), Cells(iLast, 1)).EntireRow.Select K |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|