Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to "update" SpecialCells(xlLastCell)
If I delete rows from, say, "A11" to SpecialCells(xlLastCell), the last cell
reference isn't automatically updated to reflect the new "last cell". What is the syntax or method I need to use so that SpecialCells(xlLastCell) now points to, say, "H5"? (Or is there a different method of deleting the selected cells such that it updates automatically?) Range("A11", ActiveCell.SpecialCells(xlLastCell)).Select Selection.Delete ActiveCell.SpecialCells(xlLastCell).Activate iRow = ActiveCell.Row iCol = ActiveCell.Column (I would like iRow and iCol to now point to new Max Row and Max Col) Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION | Excel Discussion (Misc queries) | |||
.Cells.SpecialCells(xlLastCell) | Excel Programming | |||
SpecialCells(xlLastCell) | Excel Programming | |||
.SpecialCells(xlLastCell).Select | Excel Programming | |||
XP VBA: Range("A2", ActiveCell.SpecialCells(xlLastCell)).Select | Excel Programming |