Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 9 Oct 2008 17:06:00 -0700,    group: microsoft.public.word.vba.general        back       


DropDownList ContentControl PlaceHolderText   
in Word 2007
I would like to be able to reset a dropdownlist to the placeholder text 
using vba. Is this possible? I guess I would like ShowingPlaceholderText to 
be read/write instead of read only.
date: Thu, 9 Oct 2008 17:06:00 -0700   author:   KWarner

Re: DropDownList ContentControl PlaceHolderText   
I believe you simply select it from the list of dropdown items:

Sub ScratchMaco()
Dim oCC As ContentControl
Set oCC = ActiveDocument.ContentControls(1)
oCC.DropdownListEntries(1).Select  'Where the first ListEntry is the 
placeholdertext
End Sub


KWarner wrote:
> in Word 2007
> I would like to be able to reset a dropdownlist to the placeholder
> text using vba. Is this possible? I guess I would like
> ShowingPlaceholderText to be read/write instead of read only.

-- 
Greg Maxey -  Word MVP

My web site http://gregmaxey.mvps.org
Word MVP web site http://word.mvps.org

McCain/Palin '08 !!!
date: Thu, 9 Oct 2008 20:36:41 -0400   author:   Greg Maxey RrOMEOgOLF

Re: DropDownList ContentControl PlaceHolderText   
I don't want the placeholdertext to be one of the items to be selected, and I 
want it to be the grayed out style like the placeholdertext.

"Greg Maxey" wrote:

> I believe you simply select it from the list of dropdown items:
> 
> Sub ScratchMaco()
> Dim oCC As ContentControl
> Set oCC = ActiveDocument.ContentControls(1)
> oCC.DropdownListEntries(1).Select  'Where the first ListEntry is the 
> placeholdertext
> End Sub
> 
> 
> KWarner wrote:
> > in Word 2007
> > I would like to be able to reset a dropdownlist to the placeholder
> > text using vba. Is this possible? I guess I would like
> > ShowingPlaceholderText to be read/write instead of read only.
> 
> -- 
> Greg Maxey -  Word MVP
> 
> My web site http://gregmaxey.mvps.org
> Word MVP web site http://word.mvps.org
> 
> McCain/Palin '08 !!! 
> 
> 
>
date: Fri, 10 Oct 2008 03:40:01 -0700   author:   KWarner

RE: DropDownList ContentControl PlaceHolderText   
for anyone who may be interested in how I solved this:

    Dim cc As ContentControl
    For Each cc In MainDoc.ContentControls
        If cc.Type = wdContentControlDropdownList Then
            cc.Type = wdContentControlComboBox
            cc.Range = ""
            cc.Type = wdContentControlDropdownList
        End If
    Next



"KWarner" wrote:

> in Word 2007
> I would like to be able to reset a dropdownlist to the placeholder text 
> using vba. Is this possible? I guess I would like ShowingPlaceholderText to 
> be read/write instead of read only.
date: Fri, 10 Oct 2008 14:22:07 -0700   author:   KWarner

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us