Message 1 of 2
combobox.ColumnHeader(0).Value = "how?"

Not applicable
09-27-2006
02:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i know this is a dumb question but i've searched help and google on both vb
and vba and cant' find how to set combobox or listbox header values
me.ComboBox1.ColumnHeads = True creates headers but I can't figure out how
to put titles in them...duh!
i've tried several obviously nonexistant properties but none of them
exist...how about that?
'Me.ListBox1.ColumnHeaders.Add 1, , "Test"
'Me.ComboBox1.ColumnHeaders.Add 1, , "Test"
'Me.ListBox1.ColumnHeaders(0).Caption = "Test"
'Me.ListBox1.ColumnHeaders(0).Value = "Test"
'Me.ListBox1.AddData Array("Title1", "Title2"...etc)
'Me.ListBox1.Column(1, 1).Value = "Test"
'Me.ListBox1.Column(0, 0).Value = "Test"
'Me.ComboBox1.AddItem "TITLE1", 1
'Me.ComboBox1.AddItem "TITLE2", 2
'Me.ComboBox1.AddItem "TITLE3", 3
'Me.ComboBox1.AddItem "TITLE4", 4
:-)
any pointers to a help file explaining that?
thanks
Mark
fwiw acad2007 win2k
and vba and cant' find how to set combobox or listbox header values
me.ComboBox1.ColumnHeads = True creates headers but I can't figure out how
to put titles in them...duh!
i've tried several obviously nonexistant properties
exist...how about that?
'Me.ListBox1.ColumnHeaders.Add 1, , "Test"
'Me.ComboBox1.ColumnHeaders.Add 1, , "Test"
'Me.ListBox1.ColumnHeaders(0).Caption = "Test"
'Me.ListBox1.ColumnHeaders(0).Value = "Test"
'Me.ListBox1.AddData Array("Title1", "Title2"...etc)
'Me.ListBox1.Column(1, 1).Value = "Test"
'Me.ListBox1.Column(0, 0).Value = "Test"
'Me.ComboBox1.AddItem "TITLE1", 1
'Me.ComboBox1.AddItem "TITLE2", 2
'Me.ComboBox1.AddItem "TITLE3", 3
'Me.ComboBox1.AddItem "TITLE4", 4
:-)
any pointers to a help file explaining that?
thanks
Mark
fwiw acad2007 win2k