A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Try it this way.
Bernie
Option Explicit
Public myTop As Integer
Private Sub CommandButton1_Click()
Dim cCntrl As Control
Dim myCount As Integer
myCount = Me.Controls.Count
Set cCntrl = Me.Controls.Add("Forms.TextBox.1", "TextBox" & myCount + 1, True)
With cCntrl
.Width = 150
.Height = 25
myTop = myTop + 35
.Top = myTop
.Left = 10
End With
End Sub