M
Michael Malinsky
I've been working through the NG trying to perfect this, but to no
avail. I'm trying to show a "Please Wait" modeless form (UserForm2) as
my workbook has numerous occurrences of a UDF that are all recalculated
when a user form (UserForm1) is closed. Here's my code:
Private Sub CommandButton3_Click()
UserForm1.Hide 'since I cannot show a modeless form while a
modal form is showing
UserForm2.Show vbModeless
Unload UserForm1
End Sub
'Code for UserForm2
Private Sub UserForm_Activate()
UserForm2.Caption = "Please wait"
Call Calculate
Unload UserForm2
End Sub
Private Sub Calculate()
Application.Calculate
End Sub
'End code
Thanks,
Mike.
avail. I'm trying to show a "Please Wait" modeless form (UserForm2) as
my workbook has numerous occurrences of a UDF that are all recalculated
when a user form (UserForm1) is closed. Here's my code:
Private Sub CommandButton3_Click()
UserForm1.Hide 'since I cannot show a modeless form while a
modal form is showing
UserForm2.Show vbModeless
Unload UserForm1
End Sub
'Code for UserForm2
Private Sub UserForm_Activate()
UserForm2.Caption = "Please wait"
Call Calculate
Unload UserForm2
End Sub
Private Sub Calculate()
Application.Calculate
End Sub
'End code
Thanks,
Mike.