PC Review


Reply
Thread Tools Rate Thread

Delete all labels on a line chart

 
 
Steve Mackay
Guest
Posts: n/a
 
      9th Apr 2008
How do I delete all labels for every point on a line chart, using
VBA? I have 11 series of data, and I want to delete all labels before
running some other code?

Thanks
Steve
 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      10th Apr 2008
Hi,

Try this to remove all data labels from all series.

ActiveChart.ApplyDataLabels xlDataLabelsShowNone

Or all data labels for a specific series.

Activechart.SeriesCollection(3).hasdatalabels=false


Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Steve Mackay" <(E-Mail Removed)> wrote in message
news:19f1c0a9-482f-40aa-9708-(E-Mail Removed)...
> How do I delete all labels for every point on a line chart, using
> VBA? I have 11 series of data, and I want to delete all labels before
> running some other code?
>
> Thanks
> Steve


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to change position of chart labels on line chart Shane Henderson Microsoft Excel Charting 1 27th May 2011 09:31 AM
labels in line chart GrandMufti Microsoft Excel Charting 1 28th Apr 2008 10:55 PM
add labels to line chart Steve Mackay Microsoft Excel Programming 7 10th Apr 2008 02:37 AM
Min, Max Value Labels in Line Chart Freddy Microsoft Excel Charting 1 10th May 2006 04:07 AM
How do I get the line chart labels to line up directly below the tickmarks? rgoodson40 Microsoft Excel Charting 1 28th Oct 2004 09:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:54 PM.