Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default Color Pallette

I have just discovered that the color numbers for the cells and the color
numbers for BackColor for labels and text boxes are different numbers. I
have a UserForm and I want the users of the spreadsheet to click on names in
a list box and turn the color of a text box on the UserForm the same color as
a cell on the spreadsheet that belongs to them, but the color numbers are
different. Any ideas how to correlate these two numbering systems?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Color Pallette

This worked for me:

Private Sub CommandButton1_Click()
TextBox1.BackColor = ActiveCell.Interior.Color
End Sub


--
Regards,
Tom Ogilvy


"Steve" wrote in message
...
I have just discovered that the color numbers for the cells and the color
numbers for BackColor for labels and text boxes are different numbers. I
have a UserForm and I want the users of the spreadsheet to click on names

in
a list box and turn the color of a text box on the UserForm the same color

as
a cell on the spreadsheet that belongs to them, but the color numbers are
different. Any ideas how to correlate these two numbering systems?

Thanks,



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
Color Pallette Issues Jeremy Excel Discussion (Misc queries) 1 April 8th 08 04:42 PM
Color Pallette and Font Str8 Excel Discussion (Misc queries) 2 October 12th 06 10:09 PM
Color pallette changed spontaneously, what the...? markmdz Excel Discussion (Misc queries) 0 February 15th 06 06:16 PM
Changing Excel's Color Pallette Nozzle23 Excel Discussion (Misc queries) 2 September 7th 05 12:41 PM
Changing Color Pallette ? Nozzle23 Excel Discussion (Misc queries) 1 September 5th 05 01:56 AM


All times are GMT +1. The time now is 11:04 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"