Is Chart Series in Legend - VBA Check

erock24

Well-known Member
Joined
Oct 26, 2006
Messages
1,163
Is it possible to check if a chart series is in the legend? I have a chart that has 6 series charted, but only 4 of those are represented in the legend as an entry. Is there a VBA function that can loop the chart series and test if they are represented in the legend?

Thank you,
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
As far as I know, no. There is no way to read the text of a legend entry in VBA and you can't refer to them by name, only by index number.
 
Upvote 0
Thank you for the reply. Seems like this would be a very useful enhancement. Is there a place to post recommendations such as these or is that a lost cause??
 
Upvote 0
Given how low VBA is in Microsoft’s estimation, I wouldn’t hold your breath!
I can’t recall offhand what the current version of uservoice is for making suggestions, I’m afraid.
 
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,110
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top