Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: JeggburtPosted on 2007-02-01 at 00:51:23ID: 18442878
The only thing I can think of that could do what you want it to do is create a global variable for each textbox you want to check.
In your form's code input, you need something like this:
Dim LoadedString As String 'global variable
Private Sub UserForm_Initialize()
LoadedString = TextBox1.Value
'assigns the global variable to the textbox
End Sub
Private Sub UserForm_Terminate()
If TextBox1.Value <> LoadedString Then
MsgBox ("Textbox1's value has changed since this form was opened")
End If
'if the textbox value has changed then the message will display
'but the form will still close though
End Sub