Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-06-2016, 12:55 PM
Papote Papote is offline Create Field That Displays Date+30, Office 2007 Windows 10 Create Field That Displays Date+30, Office 2007 Office 2013
Novice
Create Field That Displays Date+30, Office 2007
 
Join Date: Oct 2016
Posts: 2
Papote is on a distinguished road
Default Create Field That Displays Date+30, Office 2007

I am trying to create a field that when the Word file is opened automatically displays the current date + 30 days in the format 11/04/2016.


I have looked into the non-trivial field format but it doesn't display anything:

Code:
{ QUOTE "{ SET " Delay" "30" }
{  SET "DaysInMonth" { IF { CreateDate \@ "MM" } <> 2 
{  = ROUND(30.575*{ CreateDate \@ "MM" },0)-
ROUND(30.575*{ = { CreateDate \@ "MM" } -1 },0) }
{  IF {  = MOD( { CreateDate \@"yy" } , 4 ) } > 0 "28" "29" } } }
{ SET "NextMonth" {  IF {  CreateDate \@ "MM" } = 12 "1/97" 
"{ = {  CreateDate \@ "MM" } + 1 }/97 } }
{  IF {   = {  REF "Delay" } + { CreateDate \@ "dd" } } <= { REF"DaysInMonth" }
{ CreateDate \@ "MMMM { = {  REF "Delay" } + { CreateDate \@ "dd" } }, yyyy"}{ QUOTE { NextMonth \@ "MMMM" } 
{ = { REF "Delay" } + { CreateDate \@ "dd" } - { REF"DaysInMonth" } }, 
{ IF { CreateDate \@ "MM" } <> 12 { CreateDate \@ "yyyy" }
{ CreateDate \@ "{ = 1 + { CreateDate \@ "yyyy" } \# "xxxx" }" } } } }" }
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Field Code Displays Prior Month jadenmyboy Word 1 09-01-2015 12:29 PM
Create Date Field: M _____, Y Words Word 3 12-23-2014 11:44 PM
Create Field That Displays Date+30, Office 2007 To Do List Report (Project 2007) Displays Completed Tasks SusanK Project 5 04-23-2014 07:12 AM
Date field inserting merge date in blank field Lesley Mail Merge 5 09-30-2013 01:49 AM
Create Field That Displays Date+30, Office 2007 Logo displays upside down in Word 2007 staggear Drawing and Graphics 1 04-12-2011 02:21 PM

Other Forums: Access Forums

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