davidmyers
Board Regular
- Joined
- Jan 29, 2017
- Messages
- 88
- Office Version
- 2016
- Platform
- Windows
Hi I have the following code
Can someone suggest a reason that it runs twice - I click Close, the form disappears, message box "closing" appears, then the form appears again, click Close, the form closes and the message box "closing" appears, click "ok". Why does the routine run twice?
I have other userforms on the same sheet that close without any problem
Thanks for any help
David
Code:
Private Sub CloseBtn_Click()
ActiveCell.EntireRow.Font.ColorIndex = 1
Unload UserForm4
MsgBox "closing"
End Sub
Can someone suggest a reason that it runs twice - I click Close, the form disappears, message box "closing" appears, then the form appears again, click Close, the form closes and the message box "closing" appears, click "ok". Why does the routine run twice?
I have other userforms on the same sheet that close without any problem
Thanks for any help
David
Last edited: