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

Hi All,

Working from within Access and using VBA, I am exporting a query t
Excel, formatting the spreadsheet, and then creating six pie chart
based on the data in the query.

Everything works great, except for the Leader Lines. Even though
selected to include the Leader Lines while recording the macro that
used in my code, and my code does include "HasLeaderLines:=True" (se
below), and even though I can see the Leader Lines being created whe
the macro is running, after the program has ended, I open the Exce
file, and the Leader Lines are not there.

Here is the code for the first of the six pies:

' Group 15 Core Services pie Chart
xlApp.Charts.Add
xlApp.ActiveChart.ChartType = xlPie
xlApp.ActiveChart.SetSourceDat
Source:=xlApp.Sheets("qry_transaction_summary_core _ac").Range("C"
intGrp15_CORE_Start_Row & ":C" & intGrp15_CORE_End_Row & ",D"
intGrp15_CORE_Start_Row & ":D" & intGrp15_CORE_End_Row)
PlotBy:=xlColumns
xlApp.ActiveChart.Location WHE=xlLocationAsNewSheet
Name:="Grp15 - SVCS"
With xlApp.ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = _
"Group 15 - Payor Mix - Services - " & strMonthName_YYYY
End With
xlApp.ActiveChart.ApplyDataLabel
Type:=xlDataLabelsShowLabelAndPercent, LegendKey _
:=False, HasLeaderLines:=True
xlApp.ActiveWindow.Zoom = 75

If anyone has had experience with this, please shed some light.

Thanks in advance,

Rich

--
Message posted from http://www.ExcelForum.com

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
Working with MAX and IF Jennifer B[_2_] Excel Discussion (Misc queries) 2 November 26th 09 01:12 AM
Calculate working days but change working week SamB Excel Discussion (Misc queries) 1 September 1st 08 09:17 PM
Making weekend days working days - the system cuts the working tim Fluffy Excel Discussion (Misc queries) 1 May 30th 08 10:02 PM
SUM not working scott Excel Worksheet Functions 5 January 9th 07 05:18 PM
Adding sales from a non working day to the previous working day Alex Excel Programming 1 September 19th 03 08:48 AM


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