Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2012, 08:49 AM
ll4u76 ll4u76 is offline Change ComboBox Properties Windows 7 64bit Change ComboBox Properties Office 2010 32bit
Novice
Change ComboBox Properties
 
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
  #2  
Old 03-31-2012, 05:08 AM
macropod's Avatar
macropod macropod is offline Change ComboBox Properties Windows 7 64bit Change ComboBox Properties Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



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
Change ComboBox Properties 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
Change ComboBox Properties Combobox manipulation vsempoux Word VBA 3 10-31-2009 08:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft