I have some code to add textboxes to a miltipage userform. The boxes that hold the data to be entered need to have multiline and wordwrap as true. Can someone tell me where I can add the .MultiLine and .WordWrap switches into this code?
' Add the boxes for the data
'###
' Need to set multiline and wordwrap for these boxes
'###
Set cCntrl = UserForm1.MultiPage1.Pages(PageNum).Controls.Add("Forms.TextBox.1", _
"Data" & BoxNum, True)
With cCntrl
.Width = 150
.Height = 36
.Top = BoxTop
.Left = 160
.ZOrder (0)
.Locked = False
End With
With cCntrl.Font
.Name = "Arial"
.Size = 10
End With
Bookmarks