ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   disable a shape (https://www.excelbanter.com/excel-programming/401236-disable-shape.html)

JT

disable a shape
 
I use a shape for a button and assign a macro to this button. When the user
presses the button, it kicks off the macro.

Is it possible to disable this shape if a certain condition is met? If so,
how? Any help would be appreciated.

I know I probably should have used buttons but this was one of my first
projects and I used what I knew would work.

Thanks

--
JT

Bob Phillips

disable a shape
 
Hide it?


ActiveSheet.Shapes("Rectangle 1").Visible = False

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"JT" wrote in message
...
I use a shape for a button and assign a macro to this button. When the
user
presses the button, it kicks off the macro.

Is it possible to disable this shape if a certain condition is met? If
so,
how? Any help would be appreciated.

I know I probably should have used buttons but this was one of my first
projects and I used what I knew would work.

Thanks

--
JT





All times are GMT +1. The time now is 07:26 PM.

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