ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Identify selected chart (https://www.excelbanter.com/excel-programming/325271-identify-selected-chart.html)

Michael Singmin

Identify selected chart
 
Hello Group,

I have two charts on Sheet1.
One of them is selected.

How do I determine which has been selected ? VBA

Thanks,

Michael Singmin

JulieD

Identify selected chart
 
Hi Michael

you can use the
activechart.name
syntax

e.g.
MsgBox ActiveChart.Name

Cheers
JulieD


"Michael Singmin" wrote in message
...
Hello Group,

I have two charts on Sheet1.
One of them is selected.

How do I determine which has been selected ? VBA

Thanks,

Michael Singmin




Don Guillett[_4_]

Identify selected chart
 
msgbox activechart.name

--
Don Guillett
SalesAid Software

"Michael Singmin" wrote in message
...
Hello Group,

I have two charts on Sheet1.
One of them is selected.

How do I determine which has been selected ? VBA

Thanks,

Michael Singmin




Andy Pope

Identify selected chart
 
Hi,

If you don't want to deal with the sheetname information returned by
Activechart.Name then you can use

Msgbox Activechart.parent.name

Cheers
Andy

Michael Singmin wrote:
Hello Group,

I have two charts on Sheet1.
One of them is selected.

How do I determine which has been selected ? VBA

Thanks,

Michael Singmin


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


All times are GMT +1. The time now is 09:56 AM.

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