Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range empty?
Hi There,
How comes Range = Nothing? I would like the message box to show something like: F125 Thanks, Sige Sub Show_Usedrange() Dim lngLastRow As Long Dim rLastRowCell As Range On Error Resume Next lngLastRow = 1 With ActiveSheet.UsedRange lngLastRow = .Find("*", .Cells(1), xlFormulas, xlWhole, xlByRows, xlPrevious).Row Set rLastRowCell = Cells(lngLastRow + 1, 6) MsgBox rLastRowCell End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
empty autofiltered range | Excel Programming | |||
why is range empty? | Excel Discussion (Misc queries) | |||
why is range empty? | Excel Programming | |||
sum next two non-empty cells in a range | Excel Worksheet Functions | |||
determinate if a range is empty | Excel Programming |