ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text Box Change Event (https://www.excelbanter.com/excel-programming/403401-text-box-change-event.html)

dunnerca

Text Box Change Event
 
I'm coding a userform text box change event. I want a msgbox to come up if
the user changes the cell contents but the msgbox comes up if the new
contents are different from the old contents; however, if the user just tabs
out of the text box the msgbox comes up (i.e. - the program sees that as a
"change" event.

Does the "change" refer to a change in focus or a change in the contents?

JLGWhiz

Text Box Change Event
 
The change event occurs when the value property changes. It would not occur
on a tab out unless the value was changed simultaneously.

"dunnerca" wrote:

I'm coding a userform text box change event. I want a msgbox to come up if
the user changes the cell contents but the msgbox comes up if the new
contents are different from the old contents; however, if the user just tabs
out of the text box the msgbox comes up (i.e. - the program sees that as a
"change" event.

Does the "change" refer to a change in focus or a change in the contents?


Jim May

Text Box Change Event
 
Always post your existing code - FOR THE BEST ANSWER (Results).

"dunnerca" wrote:

I'm coding a userform text box change event. I want a msgbox to come up if
the user changes the cell contents but the msgbox comes up if the new
contents are different from the old contents; however, if the user just tabs
out of the text box the msgbox comes up (i.e. - the program sees that as a
"change" event.

Does the "change" refer to a change in focus or a change in the contents?



All times are GMT +1. The time now is 01:38 AM.

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