B
Ben H
Hey Guys.
Got a really goofy question here. I'm trying to create a macro that will
take data from the ranges of C3 to CY103 and create a surface plot with it.
This is what I have recorded and its spitting an error out no matter what I
try to do.
************************************
Sheets("Surf Plot Data").Select
Charts.Add
ActiveChart.ChartType = xlSurface
ActiveChart.SetSourceData Source:=Sheets("Surf Plot
Data").Range("C3:CY103") _
, PlotBy:=xlRows
ActiveChart.Location Where:=xlLocationAsNewSheet, Name:= _
"i hate surface plots"
ActiveChart.HasLegend = True
ActiveChart.Legend.Select
Selection.Position = xlRight
Charts.Add
************************************
Error Message is:
"A surface chart must contain at least two series"
No matter where I try to move the xlSurface command, i still get error
messages and two plots created...
Thanks for the Help
Ben H
Got a really goofy question here. I'm trying to create a macro that will
take data from the ranges of C3 to CY103 and create a surface plot with it.
This is what I have recorded and its spitting an error out no matter what I
try to do.
************************************
Sheets("Surf Plot Data").Select
Charts.Add
ActiveChart.ChartType = xlSurface
ActiveChart.SetSourceData Source:=Sheets("Surf Plot
Data").Range("C3:CY103") _
, PlotBy:=xlRows
ActiveChart.Location Where:=xlLocationAsNewSheet, Name:= _
"i hate surface plots"
ActiveChart.HasLegend = True
ActiveChart.Legend.Select
Selection.Position = xlRight
Charts.Add
************************************
Error Message is:
"A surface chart must contain at least two series"
No matter where I try to move the xlSurface command, i still get error
messages and two plots created...
Thanks for the Help
Ben H