ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform1-Can I override the need to click on the form? (https://www.excelbanter.com/excel-programming/322466-userform1-can-i-override-need-click-form.html)

sbweid

Userform1-Can I override the need to click on the form?
 
I have a long running macro and would like to display some variables to see
where I am in the processing. When I show the Userform that I created for
this purpose, I am force to click on it to keep the macro going. Is there
any way to avoid the click and just show the userform throughout the process?

Thanks!
--
sbw

sebastienm

Userform1-Can I override the need to click on the form?
 
Hi
you could either
- show the form in modeless mode:
frmMyForm.Show vbModeless
- or run the macro from the form: The form shows "This macro may take
several second. Continue?" if yes command button... run the macro and display
the % in a label.:
Sub cmdOk_Click
'run macro if not already running
End Sub

Regards,
Sebastienm

"sbweid" wrote:

I have a long running macro and would like to display some variables to see
where I am in the processing. When I show the Userform that I created for
this purpose, I am force to click on it to keep the macro going. Is there
any way to avoid the click and just show the userform throughout the process?

Thanks!
--
sbw



All times are GMT +1. The time now is 07:23 PM.

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