Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
does anyone have sample code that a) uses a ListBox with several columns b) Adds items to this listbox? Ideally, I would even like to have the different lines to have different font colors - is this possible at all in VBA? Thanks so much for your help, Oliver |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Different colors. No.
You can set the columnheads and columncount property in the properties of the listbox - no code needed. You have to use the rowsource (userform) or listfillrange (worksheet) property of the listbox to populate it if you want to use column heads. If you set columnheads to true, then the data in the row above your rowsource/listfillrange is used to populate the column heads (so don't include your header row in the rowsource or listfillrange address). -- Regards, Tom Ogilvy "Oliver Kharraz" wrote in message ... Hi, does anyone have sample code that a) uses a ListBox with several columns b) Adds items to this listbox? Ideally, I would even like to have the different lines to have different font colors - is this possible at all in VBA? Thanks so much for your help, Oliver |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print Column Heads WITHOUT Excel Column Lables | Excel Worksheet Functions | |||
Changing column heads from ABC to 123 | Excel Discussion (Misc queries) | |||
List Tabs and Column Heads | Excel Discussion (Misc queries) | |||
Column heads are numbers | Excel Discussion (Misc queries) | |||
column heads | New Users to Excel |