ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   hide a button (https://www.excelbanter.com/excel-worksheet-functions/17545-hide-button.html)

Natalie

hide a button
 
How do I use one command button to hide another command button?

Dave Peterson

Something like:

Option Explicit
Private Sub CommandButton1_Click()
Me.CommandButton2.Visible = Not (Me.CommandButton2.Visible)
End Sub

will toggle commandbutton2's visibility.

Natalie wrote:

How do I use one command button to hide another command button?


--

Dave Peterson


All times are GMT +1. The time now is 03:02 PM.

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