Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2014, 05:41 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 Document Property Question

I've created a form that uses multiple date fields that autopopulate through out. I used the Publish Date in Document Property and its working perfectly. I need another date field like it, but I dont see anymore in the Document Property section.

I just need a date field that will autopopulate in other areas.

Any suggestions?
Reply With Quote
  #2  
Old 10-13-2014, 06:33 AM
gmayor's Avatar
gmayor gmayor is offline Document Property Question Windows 7 64bit Document Property Question Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

You can create your own document properties, but it would help if you told us the relevance of the additional date to the document.

If the document is a protected form you can insert a date form field, or, for an unprotected form, a date content control.
__________________
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
  #3  
Old 10-13-2014, 07:27 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 gmayor View Post
You can create your own document properties, but it would help if you told us the relevance of the additional date to the document.

If the document is a protected form you can insert a date form field, or, for an unprotected form, a date content control.
Sure, the additional date is the when the user completes the form. It will be next to their name and further down below in the document. So I would like for it to autopopulate. How can I create a new document date property?

Its an unprotected form because the user needs to attached other document at the bottom of the form. I just need it to autopopulate automatically, not when saving the form or refreshing.

Thanks!
Reply With Quote
  #4  
Old 10-13-2014, 07:43 AM
gmayor's Avatar
gmayor gmayor is offline Document Property Question Windows 7 64bit Document Property Question Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

In that case save the document as a template and create new documents from it. Insert a createdate field. That field will display the date the document is created.
__________________
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
  #5  
Old 10-13-2014, 11:48 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 gmayor View Post
In that case save the document as a template and create new documents from it. Insert a createdate field. That field will display the date the document is created.
I want the user to be able to choose the date. Today's date maybe different from when the user signs.

Is there a way to have then choose the date and it would autopopulate to the other date field?
Reply With Quote
  #6  
Old 10-13-2014, 02:39 PM
gmaxey gmaxey is offline Document Property Question Windows 7 32bit Document Property Question Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #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
  #8  
Old 10-14-2014, 06:22 AM
gmaxey gmaxey is offline Document Property Question Windows 7 32bit Document Property Question Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Attached is a working example.
Attached Files
File Type: docm Demo.docm (32.2 KB, 12 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #9  
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
  #10  
Old 10-14-2014, 11:26 AM
gmaxey gmaxey is offline Document Property Question Windows 7 32bit Document Property Question Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Well actually it is really not perfect only a crude work around to your problem. More in line with perfect would be to create a mapped date content control and then copy and paste it where you wanted it values repeated. That is the purpose of the tool that I sent you the link for.

Glad your are satisfied though.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Thread Tools
Display Modes


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:24 AM.


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