Try this one (you haven't specify sheet to which Cells() belongs):
NumShips = 7
With Sheets("Ship Tracker")
ActiveChart.SetSourceData Source:=.Range(.Cells(2, 78), .Cells(17, NumShips + 80)), PlotBy:=xlColumns
End With
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more