Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Freeform shapes

hey,

i have created a numbers of freeform shapes and its being grouped with
label and name individually.

can anyone please guide me on how to,

1. how can i know which shape is being selected using the mouse and
what would be the mouse event in order to select the shape???

2. there are 8 adjustment handlers surrounding the selected shape.
these adjustment handlers are basically use for resizing the shape. so,
is there any way that i can restrict or disable this adjustment
feature???

3. how can i restrict the shape from being move vertically???

very much appreciated if anyone can help.

thank you much indeed,
jackie

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Freeform shapes

Hi Jackie,

i have created a numbers of freeform shapes and its being grouped with
label and name individually.

can anyone please guide me on how to,

1. how can i know which shape is being selected using the mouse and
what would be the mouse event in order to select the shape???


Shapes from the Drawing toolbar do not expose events, such as selection. So
there is no direct way to know if a shape has just been selected, yet alone
which particular shape. Maybe some complex method with API's exists.

Retrospecively, you could check your shape's properties in any other
workbook or worksheet event, and if necessary restore as original.

2. there are 8 adjustment handlers surrounding the selected shape.
these adjustment handlers are basically use for resizing the shape. so,
is there any way that i can restrict or disable this adjustment
feature???


Tools / Protection / Protect sheet / Objects will prevent your shapes being
selected and adjusted.

3. how can i restrict the shape from being move vertically???


Again, protection would prevent shapes being moved in any direction. Before
protecting, you may also want to check the "Don't move or size with cells"
option. Rt-click the shape / Format / Properties

Regards,
Peter T


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Freeform shapes

Just to add.
You can right click on a autoshape and select assign macro and assign a
macro to it. If the user then tries to select the shape (clicks on it with
the mouse), it provides feed back similar to a button and fires the macro.

This may not be what you want, but that is the onaction event for the shape.

That alone does not prevent right clicking on the shape and using the
shortcut menu to edit it.

--
Regards,
Tom Ogilvy



"Peter T" <peter_t@discussions wrote in message
...
Hi Jackie,

i have created a numbers of freeform shapes and its being grouped with
label and name individually.

can anyone please guide me on how to,

1. how can i know which shape is being selected using the mouse and
what would be the mouse event in order to select the shape???


Shapes from the Drawing toolbar do not expose events, such as selection.

So
there is no direct way to know if a shape has just been selected, yet

alone
which particular shape. Maybe some complex method with API's exists.

Retrospecively, you could check your shape's properties in any other
workbook or worksheet event, and if necessary restore as original.

2. there are 8 adjustment handlers surrounding the selected shape.
these adjustment handlers are basically use for resizing the shape. so,
is there any way that i can restrict or disable this adjustment
feature???


Tools / Protection / Protect sheet / Objects will prevent your shapes

being
selected and adjusted.

3. how can i restrict the shape from being move vertically???


Again, protection would prevent shapes being moved in any direction.

Before
protecting, you may also want to check the "Don't move or size with cells"
option. Rt-click the shape / Format / Properties

Regards,
Peter T




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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
how to dump freeform coordinates (a plot shape) Durango Charts and Charting in Excel 6 November 26th 08 08:59 AM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
Pick list or freeform text PJH Excel Discussion (Misc queries) 2 March 30th 06 05:11 AM


All times are GMT +1. The time now is 11:59 AM.

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"