Call Userfor and click button with macro

  • Thread starter Thread starter ExcelMonkey
  • Start date Start date
E

ExcelMonkey

Is it possible to call a userform and click its ok button
without actually displaying it?

Thanks
 
Change the Click event procedure's declaration from Private to
Public, and then user code like the following:

Load UserForm1
UserForm1.CommandButton1_Click


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Thanks

-----Original Message-----
Change the Click event procedure's declaration from Private to
Public, and then user code like the following:

Load UserForm1
UserForm1.CommandButton1_Click


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




message news:[email protected]...


.
 

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

Similar Threads


Back
Top