Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am getting an error message when trying to have a macro create a
chart. The following is my error message: Run-Time Error '1004' Unbale to set the xValue property of the Seris class The following is my code: Charts.Add ActiveChart.ChartType = xlLineMarkers ActiveChart.Location Whe=xlLocationAsObject, Name:="Sheet5" ActiveChart.SetSourceData Source:=Sheets("Sheet4").Range("A3:A23,C3:C23"), _ PlotBy:=xlColumns ActiveChart.SeriesCollection(1).XValues = "=(Sheet4!A8,A15,A23)" ActiveChart.SeriesCollection(1).Values = _ "=(Sheet4!C9,C16,C24)" ActiveChart.SeriesCollection(1).Name = "=Sheet4!A2" All of my cells is sheet4 have valid data. I am not sure what I am doing wrong. The should be created in sheet5 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Macro for Charts | Excel Programming | |||
Macro to copy Excel charts to existing Powerpoint file | Excel Programming | |||
VBA Code, My excel macro creates the charts on top of each other | Excel Programming | |||
Creating a macro to copy a number of charts from Excel to PPT | Excel Programming | |||
Global macro for resizing and reformatting Excel charts | Excel Programming |