Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have a routine that calls a function to determine the last row in a range. I need the function to return the last row number to the calling routine which will place the number in the active cell. Hope someone can help. Sub LastRow() FindLastRow ("A") ActiveCell.Formula = ??????? End Sub Public Function FindLastRow(cell) As String Dim LastRow LastRow = Range(cell & Rows.Count).End(xlUp).Row End Function Many Thanks - Grant |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing Arguments in Excell | Excel Worksheet Functions | |||
Passing Arguments in Excell function | Excel Discussion (Misc queries) | |||
Passing Variable Number of Arguments to a Sub | Excel Discussion (Misc queries) | |||
Passing arguments to a sub routine... | Excel Programming | |||
Passing ARGUMENTS between event procedures of a USERFORM | Excel Programming |