![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Location: New York
Posts: 26
|
Hello i have a simple question. How do you call a row using a variable? Example
Rows("1:1").select Using Rows("count:count").select doesn't work. Any Help would be appreciated. Bill Mahoney |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Dim RowNumber1 As Long Dim RowNumber2 As Long RowNumber1 = 65 RowNumber2 = 67 Rows(RowNumber1 & ":" & RowNumber2).Select Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: New York
Posts: 26
|
Thanks for the help. I finally figured it out.
using Rows(Count).Select works just fine. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|