Thread: [Solved] Change ComboBox Properties
View Single Post
 
Old 03-30-2012, 08:49 AM
ll4u76 ll4u76 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Question 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
Reply With Quote