I am trying to put text in front of a date by using a VBA Macro in excel.
I tried to use the .Formula object but I keep getting a Compile error: Expected: end of statment and it highlights the " right before PCS. I would assume this would just type this formula into the cell because this formula works just by typing it in. Could I use .Value instead or could I put in an On Error Resume Next and try to bypass the error?
Range("A1").Formula = "=TEXT("PCS USED AS OF ","")&TEXT(TODAY(),"mm/dd/yyyy")"
Thanks for your input! (and output)