ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cancel Validation and Change Event (https://www.excelbanter.com/excel-programming/356586-cancel-validation-change-event.html)

cholley

Cancel Validation and Change Event
 
Hi,

I'm using a change event to run a routine whenever a specific cell (B3)
changes. That cell uses Excel's data validation tool to restrict the number
of values that can be entered. The change event macro works fine whenever
the user enters a valid value. However, it also runs whenever the user
enters an invalid value and then clicks "Cancel" on the validation tool pop-
up error message. Is there any way to keep the macro from running if the
user attempts to cancel the data entry attempt? Thanks.


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com