ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Unable to set the formula property of the series class (https://www.excelbanter.com/charts-charting-excel/99225-unable-set-formula-property-series-class.html)

Malhar

Unable to set the formula property of the series class
 

Hi Guys,


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

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


Code:
--------------------


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


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



Can anybody Please suggest some solution?

Thanks,

MHR


--
Malhar
------------------------------------------------------------------------
Malhar's Profile: http://www.excelforum.com/member.php...o&userid=36343
View this thread: http://www.excelforum.com/showthread...hreadid=561287


RBee

Unable to set the formula property of the series class
 
Malhar....did you ever find a solution to this? I'm having same issue.
Thanks!

"Malhar" wrote:


Hi Guys,


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

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


Code:
--------------------


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


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



Can anybody Please suggest some solution?

Thanks,

MHR


--
Malhar
------------------------------------------------------------------------
Malhar's Profile: http://www.excelforum.com/member.php...o&userid=36343
View this thread: http://www.excelforum.com/showthread...hreadid=561287




All times are GMT +1. The time now is 12:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com