I am trying to create a multiline string and print it out with the following code.
Code
Function OutputText()
Dim string1 As String
string1 = "Testing1" & Space(4) & "Testing2"
string1 = string1 & vbNewLine & Space(12) & "Testing3"
MsgBox (string1)
End Function
Display More
The output is attached below.
How do I create a string where the text is vertically aligned so that Testing3 is precisely below Testing2?
Is there a suitable formula for the number of spaces before Testing3?