Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
How can I get a Userform textbox to display the different color text in a cell it references. Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're writing skills are not very clear. It isn't clear whether
the text box should take the color of the cell or the cell should take the color of the text box. If you want the text box to take the color of a cell, use Private Sub UserForm_Initialize() Me.TextBox1.BackColor = Range("A1").Interior.Color End Sub If you want the cell to take the color of the text box, use Range("A1").Interior.Color = Me.TextBox1.BackColor -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "LookingGood" wrote in message ... Hi All, How can I get a Userform textbox to display the different color text in a cell it references. Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip,
I have a cell that has 2 lines of data. The first line is red and the second is blue. In my userform the textbox references this cell. I would like the text to be displayed as it appears in the cell. Can this be achieved..... "Chip Pearson" wrote: You're writing skills are not very clear. It isn't clear whether the text box should take the color of the cell or the cell should take the color of the text box. If you want the text box to take the color of a cell, use Private Sub UserForm_Initialize() Me.TextBox1.BackColor = Range("A1").Interior.Color End Sub If you want the cell to take the color of the text box, use Range("A1").Interior.Color = Me.TextBox1.BackColor -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "LookingGood" wrote in message ... Hi All, How can I get a Userform textbox to display the different color text in a cell it references. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I fill one cell color with text html/rgb color from another | Excel Discussion (Misc queries) | |||
Can't format cell color/text color in Office Excel 2003 in fil | Excel Discussion (Misc queries) | |||
Make text color match cell color with macro? | Excel Discussion (Misc queries) | |||
Cond. format text color based on another's text color | Excel Discussion (Misc queries) | |||
Can't format cell color/text color in Office Excel 2003 in files . | Excel Discussion (Misc queries) |