Hello, I'm new and I am trying to understand the syntax or data types when assigning a range to XValues and Values in the SeriesCollection.
Consider this code which is from a recorded macro and works just fine:
Now I am trying to replace the constant for Values and XValues with a string value:
The code breaks at the red highlighted line even though in the watch window the string value of ValueString is identical to "='1YearByProduct'!$B$3:$M$3"
Please advise. I'm puzzled. I appreciate your input.
Bookmarks