Excel VBA - How to Add TextBox to UserForm Programatically

Published: 10 December 2014
on channel: InAnOffice
14,171
50

Excel VBA Learn how to add TextBox to UserForm programatically

The code used in this video:

Private Sub UserForm_Initialize()
Dim cTextBox As Control
Set cTextBox = Controls.Add("Forms.TextBox.1")
With cTextBox
.Height = 30
.Width = 200
.Top = 20
.Left = 20
End With
End Sub


Watch video Excel VBA - How to Add TextBox to UserForm Programatically online without registration, duration hours minute second in high quality. This video was added by user InAnOffice 10 December 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,171 once and liked it 50 people.