Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tony
Target is the cell that was changed when you use Worksheet_Change. It doesn't matter what the ActiveCell is, Target points to the cell that fired the event. SpecialCells(xlCellTypeLastCell) returns the last cell in the worksheet, so you don't want to use that. 'HERE I AM USING SpecialCells(xlCellTypeLastCell) TO GET THE LAST CELL 'AND End(xlToRight) TO GET THE GET THE LAST CELL ON THAT ROW WHICH HOLDS THE entryID x = ActiveCell.SpecialCells(xlCellTypeLastCell).End(xl ToRight) x = Target.End(xlToRight).Value -- Dick Kusleika MVP - Excel Excel Blog - Daily Dose of Excel www.dicks-blog.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |