I have a function that returns an alphabetical column label for each numerical column label, alphacol().
I am getting a error on the "rng1.Value" line:
Quote"Invalid Parameter"
Code
Dim rng1 As Range
string1 = alphacol(15) & "4:" & alphacol(15) & "13"
Set rng1 = Sheets("PlotData").Range(string1)
Sheets("Graph").ChartObjects("Chart 1").Chart.SeriesCollection(1).XValues = rng1.Value
If I replace the line:
I also get the error:
Quote"Invalid Parameter"