Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autoshape coding
I have created an autoshape (rectangle) and have assigned
a macro to it that displays another worksheet. But, how do I in code, make the shape visible, and not visible? In code, how do I change its position? In code, how do enable and disable the macro? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autoshape coding
Hi Sheldon
To make the shape visible or not visible.... ActiveSheet.Shapes("myshape").Visible = True or ActiveSheet.Shapes("myshape").Visible = False To move the shape. With ActiveSheet.DrawingObjects("myshape") ..ShapeRange.IncrementLeft -93.75 ..ShapeRange.IncrementTop -372.75 End With What do you mean by disable / enable the macro - if the shape is hidden a user cannot run the macro by clicking the shape. -- XL2002 Regards William "Sheldon" wrote in message ... | I have created an autoshape (rectangle) and have assigned | a macro to it that displays another worksheet. | | But, how do I in code, make the shape visible, and not | visible? In code, how do I change its position? In code, | how do enable and disable the macro? | | | Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
AutoShape | Excel Discussion (Misc queries) | |||
autoshape | Excel Discussion (Misc queries) | |||
Autoshape | Excel Discussion (Misc queries) | |||
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? | Excel Programming | |||
NAME OF AUTOSHAPE | Excel Discussion (Misc queries) |