Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe there's a better way but you can add some code to a close event for the
form that stores the codes for the colors per object (ex. Record in table_CboxColors: ObjName = cbox_Customer ObjForecolor = 255). Then you can add an on open event that loads these colors in. You may have to cycle through the objects on the form (for each obj in me.objects kind of a thing) and see what it's name is. If the name matches the object name in the table then apply the associated forecolor. I say that only because I don't know how to use a string variable with a me.xxx statement. Can you? Anyway, I hope that helps. " wrote: Hi, I have a worksheet with a few embedded form comboboxes. I also have installed a custom color palette and would like to set the initial value of these boxes to one of the custom colors. The Change event of each box, then sets the background color to white. What is the best way to set the background color so that once it is changed to white it will not rest to the custom color when the workbook is re-opened? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Migrating Custom color palette from 2003 to 2007 | Excel Discussion (Misc queries) | |||
Custom color palette codes | Excel Discussion (Misc queries) | |||
Automatic loading of custom color palette in a workbook | Excel Discussion (Misc queries) | |||
Excel color palette on user form? | Excel Programming | |||
custom color palette does not get transferred with the workbook. Excel 2003 | Excel Discussion (Misc queries) |