I am getting a
'Run-time error '438' - Object doesn't support this property or method'
on one of the sub-routines which creates a chart. The macro runs fine when executing from my computer, but gives out the run-time error from another machine. The line where is fault occurs is inside ActiveSheet.Shapes.AddChart2(227, xlLine).Select
Below is the subroutine code and the line when the code faults.
'Plot Average Temperature
Range("BO4", Range("BO4").End(xlDown)).Select
***ActiveSheet.Shapes.AddChart2(227, xlLine).Select***
ActiveChart.SetSourceData Source:=Range("BO1", Range("BO4").End(xlDown))
'ActiveChart.AutoScaling = True
ActiveChart.Parent.Cut
Range("BR4").Select
ActiveSheet.Paste
Could you please advise?
Thanks,