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

How can I trap selection of a shape?

ojv
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Shape selection

Shape has it own name.
if you click one, you'll notice the shape's name from the name box located
left-top corner.

you can select it with Shape object & it's name as following:
Set shp = Sheet2.Shapes("AutoShape 1")
shp.Flip msoFlipVertical

ans also you can browse shape objects on a worksheet with For Each~Next Loop
as followinf:
Dim shp As Shape

For Each shp In Sheet2.Shapes
Debug.Print shp.Name
Next
--
msn
---------------------------------------------
the best time to plant a tree was twenty years ago.
the second best time, is today - Chinese proverb



"ojv" wrote:

How can I trap selection of a shape?

ojv

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
my curser changed from arrow shape to a cross shape???? bj New Users to Excel 1 February 5th 07 02:47 PM
How to trigger a selection change between a cell and a shape Gerold Kriechbaumer Excel Programming 3 July 11th 06 11:27 AM
Shape Selection Name Tom Excel Programming 2 September 14th 05 09:19 PM
Shape Selection Event !! RAFAAJ2000[_2_] Excel Programming 3 May 29th 05 08:42 PM
Deleting a shape and the cell contents the shape is in. Dave Peterson[_3_] Excel Programming 1 October 9th 03 03:36 PM


All times are GMT +1. The time now is 01:15 PM.

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

About Us

"It's about Microsoft Excel"