Error '1004' “Invalid Parameter” in Data Labels, Chart

alexgoaga

New Member
Joined
Jun 9, 2017
Messages
9
Hello

I have this chart / graph from here : https://www.officetimeline.com/excel-timeline

It has to be a dynamic so i have to make a macro searching for the specific ranges.

The problems is at the "6.Add titles to your timeline's milestones" (Part B and C) category where when i try to update the Data Label Range From Cells it gives me "Error '1004' “Invalid Parameter” " even if i use record macro feature.

This is the problem :

Code:
'ActiveChart.SeriesCollection(6).DataLabels.Format.TextFrame2.TextRange. _ 
InsertChartField msoChartFieldRange, "='Daily'!$AB$8:$AB$18", 0


Note that if i do it manually, the Range is working perfectly. Why is that ?

Thank you.

P.S this question was posted also on :
Code:
https://www.excelforum.com/excel-programming-vba-macros/1191697-error-1004-invalid-parameter-in-data-labels-chart.html

, but still not answered​

 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top