Sub TestFunctions()
Dim WF_LEN As Integer, VBA_LEN As Integer
Dim WF_TRIM As String, VBA_TRIM As String
WF_LEN = Application.WorksheetFunction.Len(Range("a1")) 'This will produce an error saying this is not supported
VBA_LEN = Len(Range("b1")) 'this will work
MsgBox VBA_LEN
WF_TRIM = Application.WorksheetFunction.Trim(Range("a1")) 'this will work
VBA_TRIM = Trim(Range("b1")) 'this will work
Range("a1").Value = WF_TRIM
Range("b1").Value = VBA_TRIM
End Sub