Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How To: Get Last Cell
Kevin McCartney wrote:
I currently use Set rgeEnd = xlsheet.Cells.SpecialCells (xlCellTypeLastCell) but for some reason the event SheetSelectionChange triggers so how do I get the range of the last cell (bottom right cell) in a sheet without using the SpecialCells xlCellTypeLastCell. Simpler would be to have your event handler ignore this case. At the top of a normal module: Public ItsMe As Boolean In your code ItsMe=True Set rgeEnd = xlsheet.Cells.SpecialCells(xlCellTypeLastCell) ItsMe=False In your SheetSelectionChange If ItsMe Then Exit Sub Bill Manville MVP - Microsoft Excel, Oxford, England No email replies please - reply in newsgroup |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |