I am looking to autofill an equation to an entire row.
The problem I am facing is when the equation autofills it puts quotes around the cell reference. When it returns the equation the cell reads =DATEVALUE("E2").
Any tips on how to remove the "" from E2?
Here is my equation below.
Thanks,
Rebecca
Sub formula()
Dim lastRowF As Long
lastRowF = Range("E" & Rows.Count).End(xlUp).Row
Range("F2").Select
ActiveCell.FormulaR1C1 = "=DATEVALUE(E2)"
Range("F2").Select
Selection.NumberFormat = "m/d/yyyy"
Selection.AutoFill Destination:=Range("F2:F" & lastRowF)
'Range("F2:F248225").Select
End Sub