Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoShape skid812pb Excel Discussion (Misc queries) 6 June 3rd 09 12:44 PM
autoshape tony Excel Discussion (Misc queries) 1 February 24th 07 09:35 PM
Autoshape jackietreehorn Excel Discussion (Misc queries) 2 November 6th 05 07:56 AM
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? StargateFan[_3_] Excel Programming 10 October 6th 05 01:18 PM
NAME OF AUTOSHAPE Ronbo Excel Discussion (Misc queries) 3 August 18th 05 10:09 PM


All times are GMT +1. The time now is 10:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"