vba first line of string

The solution for “vba first line of string” can be found here. The following code will assist you in solving the problem.

Dim s As String
s = “aaa” & vbCrLf & “bb bb bbb”
Debug.Print Split(s, Chr(10))(0) ‘ aaa

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts