![]() |
![]() |
|
|||||||
| 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: Feb 2002
Location: England
Posts: 212
|
I'm having problems setting my lastrow, instead of getting the row number, I am getting the cell value. Any help appreciated.
Dim lastrow as integer lastrow = Worksheets("Sheet1").Range("A65536").End(xlUp) thanks Matt |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Apr 2002
Location: Surrey, United Kingdom
Posts: 75
|
Quote:
Use: Dim lastrow as integer lastrow = Worksheets("Sheet1").Range("A65536").End(xlUp).Row Nibbs |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Nibbs you're a star
cheers |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|