Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default LegendEntries

Hello-

I have multiple series on a chart and only a few display at any time based
on a UserForm selection.

I wish to have a legend displayed at all times, showing only the
LegendEntries for the series that are currently visible. The
..Legend.LegendEntries(i).Delete method takes them off nicely. How do I get
the specific series legend entries back into the legend when other series
are visible the chart? I can't seem to find the method.

Thanks,

Bob


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default LegendEntries

Hi Bob,

In essence delete the legend and start again. I posted an example to
hide/unhide a series and its legend entry in this thread -

http://tinyurl.com/2ape9q

In passing, note with your 'LegendEntries(i).Delete', the only time you can
be sure the legendentries index correlates with the related series index is
just after creating a legend, when all keys exist, on a single axis chart,
and all series are the same chart-type.

Regards,
Peter T


"Bob Davison" wrote in message
...
Hello-

I have multiple series on a chart and only a few display at any time based
on a UserForm selection.

I wish to have a legend displayed at all times, showing only the
LegendEntries for the series that are currently visible. The
.Legend.LegendEntries(i).Delete method takes them off nicely. How do I

get
the specific series legend entries back into the legend when other series
are visible the chart? I can't seem to find the method.

Thanks,

Bob




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default LegendEntries

Thank you very much.

"Peter T" <peter_t@discussions wrote in message
...
Hi Bob,

In essence delete the legend and start again. I posted an example to
hide/unhide a series and its legend entry in this thread -

http://tinyurl.com/2ape9q

In passing, note with your 'LegendEntries(i).Delete', the only time you
can
be sure the legendentries index correlates with the related series index
is
just after creating a legend, when all keys exist, on a single axis chart,
and all series are the same chart-type.

Regards,
Peter T


"Bob Davison" wrote in message
...
Hello-

I have multiple series on a chart and only a few display at any time
based
on a UserForm selection.

I wish to have a legend displayed at all times, showing only the
LegendEntries for the series that are currently visible. The
.Legend.LegendEntries(i).Delete method takes them off nicely. How do I

get
the specific series legend entries back into the legend when other series
are visible the chart? I can't seem to find the method.

Thanks,

Bob






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
Data series and LegendEntries order reversed in clustered bar chart [email protected] Excel Programming 0 November 23rd 05 05:50 PM
legendentries ojv[_2_] Excel Programming 4 January 18th 05 08:08 AM


All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"