Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading dynamic controls in a excel VBA form ?

Status
Not open for further replies.

JohanJohansson

Computer
Jul 28, 2002
1
SE
How is this done in Excel VBA ?

Private Sub UserForm_Initialize()

Controls.Add("VB.CheckBox", "chbCheckBox")

End Sub

This works for VB6 but not for VBA for me ?

/Johan
 
Replies continue below

Recommended for you

Johan,

try the following:

Code:
Controls.Add("Forms.CheckBox.1", "chbCheckBox")


HTH
M. Smith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top