Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 10-14-2014, 05:39 AM
ksigcajun ksigcajun is offline Document Property Question Windows 7 64bit Document Property Question Office 2010 64bit
Advanced Beginner
Document Property Question
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
You can Shanghai one on the other document properties for your purposes. For example to use the one called "Status", insert it in the document and then select its tab.

Run this code:

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
With Selection.ContentControls(1)
.Type = wdContentControlDate
.Title = "Date signed (or whatever)"
End With
End Sub

Viola!

See: http://gregmaxey.com/word_tip_pages/...ng_macros.html for instructions to employ the VBA code provided above.

You could also create and map your own Date type content control. See:
http://gregmaxey.com/word_tip_pages/...rol_tools.html
Thanks for the help, Greg.

Unfortunately, I cant get it to work. Do I need to change the title in the code to whatever I title the Content Control?

I m using "Status" from document property.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Document Property Question Update Custom Document Property in Template Byron Polk Word VBA 10 08-19-2014 07:19 AM
creating a new TITLE property from text already within document smndnm Word VBA 6 07-04-2014 08:27 PM
Use document property as condition in IF field? ChrisBrewster Word 2 01-29-2014 10:35 AM
Custom Document Property Lost From Template bhaughey Word 8 03-05-2013 02:11 PM
Document Property Question QuickParts - custom document property untttt Word 2 06-09-2011 05:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:15 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