LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Determine if cell was modified by Enter , Paste or Delete


--
Randy


"David" wrote:

Hi,
I suspect your Tools/Options/Edit/Move After Enter is set to move down after
you have entered data, so the active row is below the place you entered the
data. That can be changed.
Thanks,

"Randy" wrote:


--
Randy

Hi, I am having trouble getting the row number of the cell just modified.

If Copy/Paste is used, ActiveCell.Row gives the correct answer. If the cell
was cleared with the DEL key, again AC.Row is correct. Problem is the if the
cell was modified and then ENTER is hit, AC.Row now gives me the next row
number. I need to know the real row that was modified so I can do some stuff
to other cells on that row. This is probably easy but I can't find it.

Thanks.


yes, that is the way the options are set but i really want them that way. a
previous post suggests using Target.Row instead of ActiveCell.Row or
Selection.Row
Tried this and I does exactly what I want. Thanks all.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to determine row of page break on modified presentation sheet? pallaver Excel Discussion (Misc queries) 2 July 21st 08 06:05 AM
Determine a cell's width and enter it in the cell Leonard615 Excel Discussion (Misc queries) 2 December 24th 05 06:55 PM
dynamically enter name of last modified by in spreadsheet on save HW Excel Discussion (Misc queries) 1 June 28th 05 06:15 PM
How do I enter the date last modified in the footer of an Excel d. Last modified date in footer Excel Discussion (Misc queries) 1 February 6th 05 11:12 PM
How to determine which button was clicked on the modified right-click menu Patrick Choi Excel Programming 1 September 1st 03 02:07 PM


All times are GMT +1. The time now is 07:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"