Answers for "vba first line of string"

VBA
0

vba first line of string

Dim s As String
s = "aaa" & vbCrLf & "bb bb bbb"
Debug.Print Split(s, Chr(10))(0)        ' aaa
Posted by: Guest on February-13-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language