Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / May 2008

Tip: Looking for answers? Try searching our database.

Data labels print with white background

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wendell_lucas@hotmail.com - 06 May 2008 15:55 GMT
Hi,
I am writing a macro to create a xlColumnStacked ChartType. I'm asking
Excel to show the series values inside the column wthout borders or
fill:

   For i = 1 To .SeriesCollection.Count
     .SeriesCollection(i).ApplyDataLabels AutoText:=True, LegendKey:=
_
            False, ShowSeriesName:=False, ShowCategoryName:=False,
ShowValue:=True
     .SeriesCollection(i).DataLabels.Border.LineStyle = xlNone
     .SeriesCollection(i).DataLabels.Interior.ColorIndex = xlNone
   Next

The graph looks exactly as I would expect: with the values within each
column stack and the column colors as the background. But, when I
print, the data lables all have white backgrounds. This shows in print
preview as well.

The Format Data Label wizard shows Area Fill = None but the white
color selection box is selected. Is there any way to show the column
colors through the data label?

Thanks,
Wendell
Jon Peltier - 06 May 2008 19:48 GMT
Add this statement:

     .SeriesCollection(i).DataLabels.Font.Background = xlTransparent

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

> Hi,
> I am writing a macro to create a xlColumnStacked ChartType. I'm asking
[quoted text clipped - 21 lines]
> Thanks,
> Wendell
wendell_lucas@hotmail.com - 07 May 2008 12:57 GMT
On May 6, 2:48 pm, "Jon Peltier" <jonxlmv...@SPAMpeltiertech.com>
wrote:
> Add this statement:
>
[quoted text clipped - 38 lines]
>
> - Show quoted text -

Thanks, Jon
Works fine. You have a great site too!  This is just one more line of
your code in this application.

Wendell
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.