Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VBA ComboBox Text Color

Is there a way to change the font color as it is loaded into a form on
a combobox? I have items that I am adding to a form and I want to
keep the font color that is on the worksheet.

Thanks for looking,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default VBA ComboBox Text Color

Assuming you are using a combo box from the control toolbox there is a
ForeColor property which refers to the font color. That bing said it applies
to the combo box and not the individual items in the combo box. That being
the case you only get one font colour for all entries. No rainbows allowed.
--
HTH...

Jim Thomlinson


"jlclyde" wrote:

Is there a way to change the font color as it is loaded into a form on
a combobox? I have items that I am adding to a form and I want to
keep the font color that is on the worksheet.

Thanks for looking,
Jay

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VBA ComboBox Text Color

On Oct 9, 9:30*am, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
Assuming you are using a combo box from the control toolbox there is a
ForeColor property which refers to the font color. That bing said it applies
to the combo box and not the individual items in the combo box. That being
the case you only get one font colour for all entries. No rainbows allowed.
--
HTH...

Jim Thomlinson



"jlclyde" wrote:
Is there a way to change the font color as it is loaded into a form on
a combobox? *I have items that I am adding to a form and I want to
keep the font color that is on the worksheet.


Thanks for looking,
Jay- Hide quoted text -


- Show quoted text -


I am talkign about on a UserForm in VBA. I have a list box and it is
populated by data from a worksheet and I woudl liek to keep the font
colors that are on the sheet and have them be different colored
options in the list box in the form.

Thanks,
Jay
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default VBA ComboBox Text Color

Same answer for a combo box or list box on a userform. Only one colour
allowed. No rainbows. To change the colour it is the ForeColor property.
--
HTH...

Jim Thomlinson


"jlclyde" wrote:

On Oct 9, 9:30 am, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
Assuming you are using a combo box from the control toolbox there is a
ForeColor property which refers to the font color. That bing said it applies
to the combo box and not the individual items in the combo box. That being
the case you only get one font colour for all entries. No rainbows allowed.
--
HTH...

Jim Thomlinson



"jlclyde" wrote:
Is there a way to change the font color as it is loaded into a form on
a combobox? I have items that I am adding to a form and I want to
keep the font color that is on the worksheet.


Thanks for looking,
Jay- Hide quoted text -


- Show quoted text -


I am talkign about on a UserForm in VBA. I have a list box and it is
populated by data from a worksheet and I woudl liek to keep the font
colors that are on the sheet and have them be different colored
options in the list box in the form.

Thanks,
Jay

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter text in a Combobox aftamath77 Excel Discussion (Misc queries) 2 April 24th 09 08:58 PM
Entries of ComboBox with Color pallaver Excel Discussion (Misc queries) 1 July 31st 08 03:28 AM
Cond. format text color based on another's text color manxman Excel Discussion (Misc queries) 3 August 31st 06 06:27 PM
combobox text size CraigSA Excel Discussion (Misc queries) 0 May 18th 06 02:46 PM
Select Text Files from Combobox D.Parker Excel Discussion (Misc queries) 4 June 28th 05 03:46 PM


All times are GMT +1. The time now is 01:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"