Capture when a cell is left without changing any data. Worksheet_Change does not work

mgCulver

New Member
Joined
Dec 2, 2018
Messages
19
Hi.

How do I capture when a cell loses focus when nothing has changed within the cell. Worksheet_Change event only works when a change has manually been made to a cell. If nothing is changed, the Worksheet_Change event is not fired.

I think I have asked this before however, I can't find and answer.

Thanks,

Mike C
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
It sounds like you need the Worksheet_SelectionChange event. You may also need to store the previous value(s) of the monitored cell(s) to determine if changes have been made.

Can you please provide more detail, e.g.

- how many cells do you want to monitor?
- how should the code allow for the selection including monitored and non-monitored cells?
- should the code always trigger if the user moves away from the monitored range? Or only if the user moves away without making changes?
- what about moving to other worksheets? Other workbooks?
 
Upvote 0
Solution
It sounds like you need the Worksheet_SelectionChange event. You may also need to store the previous value(s) of the monitored cell(s) to determine if changes have been made.

Can you please provide more detail, e.g.

- how many cells do you want to monitor?
- how should the code allow for the selection including monitored and non-monitored cells?
- should the code always trigger if the user moves away from the monitored range? Or only if the user moves away without making changes?
- what about moving to other worksheets? Other workbooks?
That's how I got around it. Just haven't had time to test it. There are 6 cells that I'm monitoring. The routine generates an invoice based on activity in other workbooks. If the user wants to change values in one of the cells they can, however if the invoice is OK, they can step through and print the invoice without changing any data.

Appreciate your comeback. And you are correct about using the Worksheet_SelectionChange event.

This query can be closed.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,215,333
Messages
6,124,317
Members
449,153
Latest member
JazzSingerNL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top