Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I record making a chart embedded in the sheet I get this:
Charts.Add ActiveChart.ChartType = xlColumnClustered ActiveChart.SetSourceData Source:=Sheets("testsheet"). _ Range("J3:K14"), PlotBy:=xlColumns ActiveChart.Location Whe=xlLocationAsObject, Name:= _ "testsheet" But this doesn't work as it falls over at the line where the location is set: Set objChart = Charts.Add With objChart .Location xlLocationAsObject, strName .ChartType = xlColumnClustered .SetSourceData _ Source:=rngRange, _ PlotBy:=xlColumns End With The error will be: runtime error 1004, method location of object chart failed. A chart has already been made, but not this is a chart in a new chartsheet and I don't want that. How should this be done? RBS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet and make new sheet active | Excel Discussion (Misc queries) | |||
how do i make a chart follow the active cell | Charts and Charting in Excel | |||
Embedded Chart in Excel Sheet | Charts and Charting in Excel | |||
How to find a Chart embedded in a Sheet? | Excel Programming | |||
print embedded active chart programmatically | Excel Programming |