Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All.
I have the following Code: Option Explicit Public Sub LastCell() Dim X As Range Set X = Range("A65536").End(xlUp).Offset(1, 0) X.Select X.Value = ???? End Sub I need help getting the value of the number of rows in the usedrange area to put in a cell that is in the row just under the last row. Any suggestions? Any help appreciated |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Public Sub LastCell() Dim X As Range Set X = Range("A65536").End(xlUp).Offset(1, 0) X.Select X.Value = x.row - 1 End Sub -- Regards, Tom Ogilvy "me" wrote in message om... Hello All. I have the following Code: Option Explicit Public Sub LastCell() Dim X As Range Set X = Range("A65536").End(xlUp).Offset(1, 0) X.Select X.Value = ???? End Sub I need help getting the value of the number of rows in the usedrange area to put in a cell that is in the row just under the last row. Any suggestions? Any help appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to calculate the total area under a curve in excel? | Excel Worksheet Functions | |||
total print area | Excel Discussion (Misc queries) | |||
Real Value of .UsedRange.Rows.Count | Excel Worksheet Functions | |||
how can i find total width of the columns in a printing area ? | Excel Discussion (Misc queries) | |||
Problem with UsedRange.Rows.Count | Excel Programming |