Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many thanks all, for the help.
Regards. "Peter T" wrote in message ... If your TextBox is from the Controls Toolbox menu, it only accepts a long RGB colour, or a System colour, try: oleObj.Object.BackColor = ThisWorkbook.Colors(34) You may or may not need the ".Object" depending on how oleObj has been set and whether it is a textbox on a sheet or on a form. (Textboxes from the Drawing toolbar have different properties, incl .Interior.Colorindex and .Fill.Backcolor.Schemecolor). Regards, Peter -----Original Message----- Cannot find a way to change the colour of the 'fill' in a textbox. ElseIf oleObj.Name = "Control 2" Then With oleObj .Visible = True .Enabled = True .Interior.ColorIndex = 34 'get the cursor in the textbox .Activate End With End If will run without error, but with no apparent change to the textbox. Tried BackColor too. I need to be able to toggle between ColorIndexes 2 and 34. How is this done, please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.718 / Virus Database: 474 - Release Date: 09/07/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
textBox font colour the same as cell font colour???????? | Excel Discussion (Misc queries) | |||
copy cell font colour to textbox? | Excel Discussion (Misc queries) | |||
Textbox font colour change? | Excel Discussion (Misc queries) | |||
textbox font colour | Excel Discussion (Misc queries) | |||
Change colour of font in a textbox? | Excel Discussion (Misc queries) |