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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Column ListBox Control in a Toolbar

Status
Not open for further replies.

steveroberts

Programmer
Jun 13, 2002
5
US
Is it possible to have a multi column dropdown control in a custom toobar in Excel?

At the moment all I can fill it with is a single column of data by using the additem method.

Here's an excerpt from the code where ControlArray() returns an array based on the the control.

Set DdwnAnalysisType = CommandBars(AppName).Controls.Add(Type:=msoControlDropdown)
With DdwnAnalysisType
.Tag = "DdwnAnalysisType"
.Caption = "Item Group"
End With
ctrlValues = ControlArray(DdwnAnalysisType.Tag)
For iArrayRow = LBound(ctrlValues, 1) To UBound(ctrlValues, 1)
DdwnAnalysisType.AddItem (ctrlValues(iArrayRow, 2))
Next

Many thanks.
 
Steve,

From what I can see from the Excel documentation, the CommandBarComboBox object does not support multiple columns, as there is no ColumnCount property (or similar) such as in the case of the Forms ComboBox object. [sadeyes]


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top