Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

OleObjects. Add fails

Status
Not open for further replies.

dixiematic

Technical User
Oct 14, 2008
37
SI
Hello,
I wonder, why I cannot add an OLE object:I am using the example from the Excel 2007 Vba Help:

Worksheets _("List1").OLEObjects.Add "Forms.CommandButton.1", Left:=10, top:=10, Height:=20, Width:=100

and works fine.
It works fine with "Forms.CommandButton.1" and "Forms.CheckBox.1" and "Forms.ListBox.1" too, but fails with "Forms.Label.1". What am I doing wrong?
Dixiematic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top