LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Change fonts of chart legend - different results on 2 computers

Hi,

I try to set the font values of a chart legend. On my computer it works
fine - on a second it does not do anything, without any error messages.
My code:


For i = 1 To [...].DataLabels.Count

Worksheets(1).ChartObjects(1).Chart.SeriesCollecti on(1).DataLabels(i) _
.Font.Size = 50

Worksheets(1).ChartObjects(1).Chart.SeriesCollecti on(1).DataLabels(i) _
.Font.ColorIndex = 33

Next


Does anybody see the problem with this code? In general, would it be
better to reference the chart with the ActiveChart object? Are there
problems with ActiveChart?



Regards, Thomas
 
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
How do I change the size of the legend key in a chart? BicyclePatty Charts and Charting in Excel 1 November 30th 07 01:16 PM
how do i change chart legend entry in Excel? basmail Charts and Charting in Excel 1 April 20th 07 12:36 AM
How do you change legend on a chart CCP Charts and Charting in Excel 3 March 20th 07 12:20 PM
How do I change the order of item in a legend for a chart? Melissa Charts and Charting in Excel 1 October 13th 06 02:50 AM
Change a legend in Pivot Chart Report SJT Excel Discussion (Misc queries) 2 February 28th 06 08:46 PM


All times are GMT +1. The time now is 04:08 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"