I am trying to use VBA to run a macro from a specific cell ("A2") and then apply that to the whole column of ("A").
Just like how you would use a macro normally without VBA, select a cell, enter your formula and click on the bottom-right square to apply it to the full column
I want it from A2 downwards as I have a header in A1, see below comments for a workaround.
Here is my code below
Sheets("PlanningSystemData").Range("A:A").Formula = "=CONCATENATE(D2,E2)"
I attempted the following as I thought this would be an easy fix
Sheets("PlanningSystemData").Range("A2:A").Formula = "=CONCATENATE(D2,E2)"
But, I got the following error "Run-time error '1004':
Application-defined or object-defined error"
Let me know what you think!