Thread: CommandBars
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
S Shipley S Shipley is offline
external usenet poster
 
Posts: 11
Default CommandBars

MWhen I try to excute this code I get a compile error on Controls saying the
Method or data member not found. How do I declare myControl so this code
will work?

Dim myBar As CommandBars
Dim myControl As CommandBarControls

Set myBar = CommandBars("Custom")
Set myControl = myBar.Controls.Add(Type:=msoControlComboBox, ID:=1)

Thanks,
Sam