macro command button click

W

Woodi2

I have a macro that opens a userform. I want the macro to open userform 5
then upon opening userform 5 I want command button 3 to be activated. I have
made command button 3 public withing the code for userform 5. When the macro
is activated, the userform dispalys ok but the command button has not been
activated. I thought this might be a simple one but may be I was wrong.

Private Sub CommandButton1_Click()
UserForm5.Show
UserForm5.CommandButton3_Click
Unload Me
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top