ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get name of clicked Shape (https://www.excelbanter.com/excel-programming/368134-get-name-clicked-shape.html)

Zurn[_60_]

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


Harald Staff

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




Zurn[_61_]

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


Bob Phillips

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





All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com