Unable to set the formula property of the series class

M

Malhar

Hi Guys,


I am struggling with one problem. I am trying to change formulae o
series in a chart using VBA code given below. But I am getting

'Runtime Error 1004, Unable to set the formula property of the serie
class'


Code
-------------------


ActiveChart.SeriesCollection(1).Formula = _
Replace(ActiveChart.SeriesCollection(1).Formula, "Sheet1", "test")


-------------------



Can anybody Please suggest some solution?

Thanks,

MH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top