I have 30 commandbuttons on a page that open 30 different userforms.
On each userform there is a 'reset' command button that resets form data.
I have a 'master reset' commandbutton that resets data in all forms.
Currently I am using the code below to accomplish this. There has to be a better way. Any ideas would be appreciated.
If CommandButton1.BackColor = &HFFC0C0 Then
Load UserForm1
UserForm1.Reset_Click
Unload UserForm1
End If
If CommandButton2.BackColor = &HFFC0C0 Then
Load UserForm2
UserForm2.Reset_Click
Unload UserForm2
End If
etc. etc.
Cheers
PeterT
Bookmarks