Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to draw/amend a chart, but VBA stumbles over the range(cells)
bit, any ideas why?? Player "you" has worksheet 3 and the other players have the consecutive worksheets. Dirk Sub Macro6() Dim players, round, i players = 2 round = 10 Charts(1).Activate ActiveChart.ChartType = xlLineMarkers ' ActiveChart.SeriesCollection(1).XValues = Worksheets(3).Range(Cells(2, 1), Cells(round + 1, 1)) ActiveChart.SeriesCollection(1).Values = Worksheets(3).Range(Cells(2, 1), Cells(round + 1, 1)) ActiveChart.SeriesCollection(1).Name = "You" For i = 2 To players + 3 ActiveChart.SeriesCollection(i).Values = Worksheets(i + 2).Range(Cells(2, 1), Cells(round + 1, 1)) ActiveChart.SeriesCollection(i).Name = "Player" & i Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to draw a line on a chart, and have it move with the chart? | Charts and Charting in Excel | |||
How do I draw chart like car counter? | Charts and Charting in Excel | |||
Can you draw more than one pie in a chart? | Charts and Charting in Excel | |||
Draw a chart | Excel Programming | |||
how do i draw a chart with excel | Excel Discussion (Misc queries) |