Hello,
I am trying to use TEXTOIN in vba
This gives "E2:E6" as the return
If I try this instead:
str = WorksheetFunction.TextJoin(" ", False, E2:E6)
I get error
Is there a way to use TEXTJOIN in vba?
Thanks
I am trying to use TEXTOIN in vba
Code:
Sub AAA()
Dim str As String
str = WorksheetFunction.TextJoin(" ", False, "E2:E6")
MsgBox str
End Sub
This gives "E2:E6" as the return
If I try this instead:
str = WorksheetFunction.TextJoin(" ", False, E2:E6)
I get error
Is there a way to use TEXTJOIN in vba?
Thanks