[vba]
''''''' in a Class Module:
Public WithEvents classCmdButtons As msforms.CommandButton
Private Sub classCmdButtons_Click()
Application.Run ("Userform1" & "." & classCmdButtons.Name & "Click")
end sub
'''''' in a form module
Private Sub hideFormClick
Me.Hide
End Sub
[/vba]
A CmdButton named hideForm gets clicked and I get an error at the application.run statement saying: The macro 'Userform1.hideFormClick' cannot be found, although this same syntax works from the Immediate window.
How do I make this work?