NaughtyPine
Programmer
I need to target an external .xls to create a chart in my project. I have:
- - - - - - - - - - -
With ActiveChart
.ChartType = xlPieExploded
.ChartWizard _
Source:=Sheets(Data).Range(myrange), _
Gallery:=xlLine, Format:=4, PlotBy:=xlRows, _
CategoryLabels:=1, SeriesLabels:=4, HasLegend:=1, _
Title:="", CategoryTitle:="", ValueTitle:="", ExtraTitle:=""
.PlotVisibleOnly = True
End With
- - - - - - - - - - -
But need 'Sheets(Data)' to link to another file so something like 'Sheets([filename.xls]!Data)''
Can anyone help?
- - - - - - - - - - -
With ActiveChart
.ChartType = xlPieExploded
.ChartWizard _
Source:=Sheets(Data).Range(myrange), _
Gallery:=xlLine, Format:=4, PlotBy:=xlRows, _
CategoryLabels:=1, SeriesLabels:=4, HasLegend:=1, _
Title:="", CategoryTitle:="", ValueTitle:="", ExtraTitle:=""
.PlotVisibleOnly = True
End With
- - - - - - - - - - -
But need 'Sheets(Data)' to link to another file so something like 'Sheets([filename.xls]!Data)''
Can anyone help?