Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Move chart in Excel from Access


I have code that creates a chart in Excel and moves that chart to a
certain sheet. This code works in my home Access 2003 (and Excel 2003),
but not from Access 2000 (and Excel 2000), which I need it to work from.
It just creates and leaves it in the existing "Sheet1." I want it to be
in the existing "ReportCharts." What could be wrong?

The line in question is
.ActiveChart.Location Whe=xlLocationAsObject, Name:="ReportCharts"

The library references seem to be intact in both versions. This is the
full section of code:

With objExcel
.Charts.Add
.ActiveChart.SetSourceData Source:=.Sheets("Chart
Data").Range("A" & intTitleRow & _
":M" & intCurYearRow), _
PlotBy:=xlRows

.ActiveChart.Location Whe=xlLocationAsObject,
Name:="ReportCharts"
With .ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = Years(i)
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text =
"MONTH"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "COST"
.HasDataTable = False
End With
End With




--
justme0010
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
Is it time to move to access? Dave B. Excel Discussion (Misc queries) 6 April 19th 07 06:10 PM
excel chart with data source from an access query rahmad Charts and Charting in Excel 7 January 31st 07 03:55 AM
How to draw a line on a chart, and have it move with the chart? manxman Charts and Charting in Excel 5 September 27th 06 09:31 PM
Exporting an Excel Chart into Access T8RSP Charts and Charting in Excel 0 March 1st 06 02:13 PM
Move to Access? Dan Wilson Excel Worksheet Functions 4 March 18th 05 09:06 AM


All times are GMT +1. The time now is 03:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"