Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MsgBVox Cells(LastRow,LastCol).Value
'----------------------------------------------------------------- Function LastRow() As Long '----------------------------------------------------------------- LastRow = Cells.Find(What:="*", _ After:=Range("A1"), _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious).Row End Function '----------------------------------------------------------------- Function LastCol() As Long '----------------------------------------------------------------- LastCol = Cells.Find(What:="*", _ After:=Range("A1"), _ SearchOrder:=xlByColumns, _ SearchDirection:=xlPrevious).Column End Function -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Raj" wrote in message ... Hi Please send me an example code to get the last record number in a worksheet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to find and record Unique values? | Excel Discussion (Misc queries) | |||
Why doesn't Excel 2007 record charting and office art macro code? | Excel Discussion (Misc queries) | |||
find last record in macro and delete all after | Excel Programming | |||
find last record in macro and delete all after | Excel Discussion (Misc queries) | |||
vba code to record a macro | Excel Programming |