Check for changes

Av8tordude

Well-known Member
Joined
Oct 13, 2007
Messages
1,074
Office Version
  1. 2019
Platform
  1. Windows
I have a userform with a combination of textboxes and combo boxes. If I make changes to any of them, can someone assist with a code that will check if any changes have been made?

Thank you kindly.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
All userforms ive ever made have some sort of change procedures within the userform module. You use things such as:

VBA Code:
Private Sub TextBox1_Change()
'add some code to respond to the change
End Sub
 
Upvote 0
Thank you for replying. I understand the change event and how it works, however, I was wondering Is it possible to write just one subroutine that detects a change in any of the controls of the form. My goal is if anything has been change, display message box stating "Changes made".
 
Upvote 0
Forgive me for wondering but wouldnt a user know if they have made a change to a userform without being told?
 
Upvote 0
Thank you for replying. I understand the change event and how it works, however, I was wondering Is it possible to write just one subroutine that detects a change in any of the controls of the form. My goal is if anything has been change, display message box stating "Changes made".
Do a search in this board for TextBox and Calss Module
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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