VBA code for launching button_Click

rodvaN

Registered User.
Local time
Today, 11:35
Joined
May 20, 2009
Messages
92
Greetings, I need to know which is the code for launching buttons without pressing them.
Ive tried button_Click.Execute , button.Execute, Me.button_click = true
etc.

Which is the correct way for this?
thanks
 
Where are you trying to execute this? If in the SAME form module that the button is on then you can just use:

YourButtonName_Click
 
What I do is closing the FORM and ther eit shows the last form, and I have the button configured in the last form... How i might do that?
 
Form_YourOtherFormName.ButtonNameHere_Click

but you may have to change the button click event from

Private Sub ButtonName_Click()

to

Public Sub ButtonName_Click()

in the actual form that the button resides on.
 
Glad to be able to help :)
 

Users who are viewing this thread

Back
Top Bottom