Hey Guys,
I am inserting the formula but having trouble getting it to copy down. I want it to copy down to the last row of column AA to account for variable data.
I am inserting the formula but having trouble getting it to copy down. I want it to copy down to the last row of column AA to account for variable data.
Code:
Sub Insert_QueryTitle_Formula()
Range("AA1").Formula = "=IF((LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1),"""",""""))+1)>4,""Title"","""")"
Selection.AutoFill Destination:=Range("AA1:AA" & LastRow)
End Sub