#1
|
|||
|
|||
Change ComboBox Properties
I want to change the combobox border style and color. Please assist with the code.
Sub AddCBTest() ' ' AddCBTest Macro ' ' Selection.InlineShapes.AddOLEControl ClassType:="Forms.ComboBox.1" Selection.Borders.InsideLineStyle = wdLineStyleSingle Selection.Borders.OutsideColor = wdColorWhite Selection.Borders.Shadow = False End Sub |
#2
|
||||
|
||||
Hi ll4u76,
Although combo boxes share the standard inlineshape attributes, you can't actually apply a coloured border to them.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ComboBox ListIndex = -1 even though it does NOT = -1 | Joe Patrick | Word VBA | 0 | 08-03-2011 08:34 AM |
Code to export value from ComboBox | ilkks | Word VBA | 7 | 05-25-2011 04:06 AM |
Textbox updating from combobox selection | paxile2k | Word VBA | 0 | 10-26-2010 02:30 PM |
How to use the content of a combobox for {IF} field? | Melaanie | Word | 0 | 06-14-2010 02:00 AM |
Combobox manipulation | vsempoux | Word VBA | 3 | 10-31-2009 08:58 AM |