Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I've been using the following code to ascertain the last typed cell, but
I have the problem of that when there is a data filter selected it doesn't include the hidden rows, so it just returns the last visible cell, therefore is there another function that will return the actual last cell even if there is a data filter selected. TIA KM |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Depends on your data, but perhaps
set rng = range("A1").currentRegion lastRow = rng.rows(rng.rows.count).Row -- Regards, Tom Ogilvy "Kevin McCartney" wrote in message ... Hi, I've been using the following code to ascertain the last typed cell, but I have the problem of that when there is a data filter selected it doesn't include the hidden rows, so it just returns the last visible cell, therefore is there another function that will return the actual last cell even if there is a data filter selected. TIA KM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
xllastcell vs xlcelltypelastcell | Excel Programming | |||
SpecialCells(xlCellTypeLastCell) | Excel Programming |