ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Command Button Behavior (https://www.excelbanter.com/excel-programming/308792-command-button-behavior.html)

No Name

Command Button Behavior
 
Any idea why a simple command button with the following
code would require 2 clicks before it will close?

Private Sub CommandButton2_Click()
Unload UserForm1
End Sub

Bob Kilmer

Command Button Behavior
 
"before it (the form) will close?"

Do you have two instances of the form loaded?

wrote in message
...
Any idea why a simple command button with the following
code would require 2 clicks before it will close?

Private Sub CommandButton2_Click()
Unload UserForm1
End Sub





All times are GMT +1. The time now is 05:13 PM.

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