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


I have several shapes created dynamically. Every shape has the sam
macro attached to it. By clicking a shape, I want to show a the sam
form with info of the shape eg. showing a label with the current shap
clicked.

How can I do this

--
Zur
-----------------------------------------------------------------------
Zurn's Profile: http://www.excelforum.com/member.php...fo&userid=1464
View this thread: http://www.excelforum.com/showthread.php?threadid=56428

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Get name of clicked Shape

Try

MsgBox Application.Caller

HTH. Best wishes Harald

"Zurn" skrev i melding
...

I have several shapes created dynamically. Every shape has the same
macro attached to it. By clicking a shape, I want to show a the same
form with info of the shape eg. showing a label with the current shape
clicked.

How can I do this?


--
Zurn
------------------------------------------------------------------------
Zurn's Profile:

http://www.excelforum.com/member.php...o&userid=14645
View this thread: http://www.excelforum.com/showthread...hreadid=564283



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Get name of clicked Shape


ok, thank

--
Zur
-----------------------------------------------------------------------
Zurn's Profile: http://www.excelforum.com/member.php...fo&userid=1464
View this thread: http://www.excelforum.com/showthread.php?threadid=56428

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Get name of clicked Shape

Use Application.Caller

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Zurn" wrote in message
...

I have several shapes created dynamically. Every shape has the same
macro attached to it. By clicking a shape, I want to show a the same
form with info of the shape eg. showing a label with the current shape
clicked.

How can I do this?


--
Zurn
------------------------------------------------------------------------
Zurn's Profile:

http://www.excelforum.com/member.php...o&userid=14645
View this thread: http://www.excelforum.com/showthread...hreadid=564283



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
enter time when shape is clicked Dgwood90 Excel Discussion (Misc queries) 1 October 15th 08 10:31 AM
Detect which shape was clicked.... Thief_ Excel Programming 2 July 15th 05 04:46 AM
Detect which shape was clicked? Thief_ Excel Programming 1 July 15th 05 03:53 AM
How to tell wich object/shape was clicked Andrew Ofthesong Excel Programming 2 December 1st 03 05:05 PM
detecting shape clicked on notsureofthatinfo Excel Programming 1 October 15th 03 07:46 AM


All times are GMT +1. The time now is 02:15 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"