Add 1 Command Button and 1 Text Box to your
form. Set the Text Box MultiLine property to
True.
Form Code
Private Sub Command1_Click() Dim
Env As String Dim x As Integer x =
1 Env = Environ(x) Text1 =
"" Do Until Env =
"" Env =
Environ(x) Text1 = Text1 + Env
& vbNewLine x = x +
1 Loop End Sub