I am trying to return a string from a VBA function =Showtext(A1,A2) like
Function Showtext(s1 as string, s2 as string)
Showtext= s1 & chr(10) & s2
end function
however, when calling =Showtext("Hello","World") it displays as Hello World in the cell instead of
Hello
World
I have tried other chars like chr(13), vbnewline, vbcrlf, but no luck
Can someone please help ?
Thanks
vbNewLineandvbCrLfandvbLf.vbNewLine,vbCrLf,vbLf,chr(10),chr(13).