Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am having trouble with my chart making macros. I am trying to create a series XY-scatter plot of several columns (in this particular case 13 columns). My code if giving me an error, see code below between the double asterisk highlight **...** Do I need to plot each series at a time? Any help would be greatly appreciated. Thanks. For Each c In Worksheets("shift").Range(Cells(2, 2), Cells(lastRow, lastCol)).Cells If c.Value = "" Then c.Value = 0 Next ' here I am setting each empty cell to zero Charts.Add ActiveChart.Location Whe=xlLocationAsObject, Name:="shift" ActiveChart.ChartType = xlXYScatter ChartOne = ActiveChart.Parent.Name **Worksheets("shift").ActiveChart.SetSourceData Source:=Worksheets ("shift").Range(Cells(2, 2), Cells(lastRow, lastCol)), _ PlotBy:=xlColumns** ' here is where the code errors ActiveChart.PlotArea.Select Selection.Interior.ColorIndex = xlNone With Selection.Border .ColorIndex = 16 .Weight = xlThin .LineStyle = xlContinuous End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filtering data for scatter plot with chart labels | Charts and Charting in Excel | |||
Plotting 3 column data as mutiple xy scatter plot lines on same graph | Excel Discussion (Misc queries) | |||
Scatter plot with two data series having common x-values | Charts and Charting in Excel | |||
Avoid plotting refferanced blanks as zeros in scatter plot graphs | Charts and Charting in Excel | |||
chart data series -- plot a table as a single series | Charts and Charting in Excel |