LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.charting,microsoft.public.excel.programming
feh feh is offline
external usenet poster
 
Posts: 3
Default trouble setting colors

I'd like to set the color of the datalabels for my series to be the
same as the series itself.

The following does not work. It would seem that the color codes used
by .interior.color of the series are different from those used for the
font of a selection of a datalabel.

Dim myChrt As Chart
Set myChrt = ActiveChart
Dim oSer As Series
Dim dlabel As DataLabel
Dim oSerColor As String

For Each oSer In myChrt.SeriesCollection

oSerColor = oSer.Interior.Color

oSer.HasDataLabels = True
For Each dlabel In oSer.DataLabels
dlabel.Select
Selection.Font.Color = oSerColor
Next

Next


I'm using office 2007 btw.

Thanks,
Charles
 
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
trouble setting colors feh Charts and Charting in Excel 3 July 10th 09 06:08 AM
Setting Colors Using Other Than ColorIndex? PeteCresswell[_2_] Excel Programming 2 May 20th 09 02:17 AM
Trouble Setting Range Pablo Excel Programming 5 April 6th 09 01:34 PM
Setting RGB colors for a set of cells. Miron Excel Programming 5 April 24th 07 11:48 AM
Setting colors for Controls dsimcox Excel Programming 1 December 2nd 04 04:59 PM


All times are GMT +1. The time now is 04:22 PM.

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"