ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove CommandButton (https://www.excelbanter.com/excel-programming/290143-remove-commandbutton.html)

SS[_3_]

Remove CommandButton
 
I have added a commandbutton to my worksheet through a
macro. When the button is clicked, I want it to do a
series of things including get rid of the button (whether
it is deleted, hidden, etc.. I don't care I just want it
to not be on the screen any more.)

I am not suceeding at this.

Suggestions?

Thanks

SS

Jim[_40_]

Remove CommandButton
 
SS:
Set the CommandButton's Visible property to False.

Workbook.Worksheets("Sheet1").Shapes("CommandButto n1").Visible = False

Jim

"SS" wrote in message
...
I have added a commandbutton to my worksheet through a
macro. When the button is clicked, I want it to do a
series of things including get rid of the button (whether
it is deleted, hidden, etc.. I don't care I just want it
to not be on the screen any more.)

I am not suceeding at this.

Suggestions?

Thanks

SS





All times are GMT +1. The time now is 10:41 AM.

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