ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Call Userfor and click button with macro (https://www.excelbanter.com/excel-programming/324049-call-userfor-click-button-macro.html)

ExcelMonkey[_190_]

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

Thanks

Chip Pearson

Call Userfor and click button with macro
 
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




"ExcelMonkey" wrote in
message ...
Is it possible to call a userform and click its ok button
without actually displaying it?

Thanks




ExcelMonkey[_190_]

Call Userfor and click button with macro
 
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




"ExcelMonkey" wrote

in
message ...
Is it possible to call a userform and click its ok

button
without actually displaying it?

Thanks



.



All times are GMT +1. The time now is 01:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com