Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
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
  #2  
Old 10-14-2014, 06:22 AM
gmaxey gmaxey is online now Document Property Question Windows 7 32bit Document Property Question Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,639
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Attached is a working example.
Attached Files
File Type: docm Demo.docm (32.2 KB, 15 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 10-14-2014, 11:19 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
Attached is a working example.
Thats absolutely perfect! Thanks a million!
Reply With Quote
Reply



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 07:41 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