Option Explicit
Option Base 1
Dim xRay() As String
Dim c As Integer
'====================
Private Sub ListBox1_Click()
c = c + 1
ReDim Preserve xRay(c)
xRay(c) = ListBox1.Value
End Sub
'===============
Private Sub CommandButton1_Click()
Range("B1").Resize(c) = Application.Transpose(xRay)
c = 0
Erase xRay
End Sub