Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-27-2015, 04:53 AM
gmayor's Avatar
gmayor gmayor is offline How to set the Content Control placeholder default text Windows 7 64bit How to set the Content Control placeholder default text Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You don't need to toggle the design mode

Code:
Dim aCC As ContentControl
    For Each aCC In ActiveDocument.ContentControls
        Select Case aCC.Tag
            Case "SecteurActivite", "Pays"
                aCC.SetPlaceholderText , , "Choose an item."
            Case "NomClient", "Site", "DureeProjet", _
                 "AnneeRealisation", "Description", "LibelleProjet", _
                 "SousTitre", "Benefices"
                aCC.SetPlaceholderText , , "Click here to input text"
            Case Else
                aCC.SetPlaceholderText , , "no reason to display this one"
        End Select
    Next aCC
will do the job.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there VBA to paste text into content control? kintap Word VBA 2 07-02-2014 07:42 AM
Limit text length Content Control NobodysPerfect Word 10 02-28-2014 02:40 PM
How to set the Content Control placeholder default text Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM
How to set the Content Control placeholder default text How do you set rich text in a content control Testor Word VBA 4 07-08-2012 07:55 AM
Templates: automatic text generation from Rich Text content control Chickenmunga Word 0 10-01-2008 11:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:20 AM.


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