M
mark1
I am trying to use an if...then statement to show a
message box. I want to say "if the chart legend contains
this legend entry, then show MessageBox X." What I need
is a way to include all legend entries in my if...then
statement, instead of referencing each one seperately. In
the example below, instead of "...LegendEntries
(1).Font..." I want something like "...LegendEntries
(all).Font..." Is there a way to do this? Many thanks!!
Worksheets("sheet1").ChartObjects(1).Chart _
.Legend.LegendEntries(1).Font.Italic = True
message box. I want to say "if the chart legend contains
this legend entry, then show MessageBox X." What I need
is a way to include all legend entries in my if...then
statement, instead of referencing each one seperately. In
the example below, instead of "...LegendEntries
(1).Font..." I want something like "...LegendEntries
(all).Font..." Is there a way to do this? Many thanks!!
Worksheets("sheet1").ChartObjects(1).Chart _
.Legend.LegendEntries(1).Font.Italic = True