I am using a macro to append a new column of data at the far right of my data set. The code inserts a title in Row 1 and a Formula in Row 2. I am trying to fill the formula from row 2 down to the end. I am having difficulty with the last column variable in the fill statement.
x = Worksheets("DateTracker").UsedRange.Columns.Count
Worksheets("DateTracker").Cells(1, x + 1) = "Title"
Worksheets("DateTracker").Cells(2, x + 1) = "Formula"
ws.Range(.Cells(2, x + 1) & Cells(Rows.Count, 1).End(xlUp).Row).FillDown
I get an Invalid or unqualified reference error.
Thank you.