I am trying to dynamically set a chart object source. The fdc and ldc variables will change over time. I've tried several variations of code; my latest attempt being:
fdc = 26
ldc = 90
ws.ChartObjects("Chart 2").SetSourceData Source:=ws.Range("S" & fdc & ":V" & ldc)
but they all give:
Run-time error '438': Object doesn't support this property or method.