Date change..

  • Thread starter Thread starter Jorge
  • Start date Start date
J

Jorge

Is there a way to have the date automatically appear in a document
displaying the day before?
We run a day behind and I can do this in Wordpro...

Thank-you...
 
This is more complex than you might imagine, but it can be done. See
http://addbalance.com/word/datefields2.htm for information on the different
kinds of ways to make a date calculation work. It includes links to pages
with fields and an explanation of different macros that can be used instead
of fields. See http://addbalance.com/word/datefields1.htm for information on
the different kinds of datefields and how to format them.

--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Hi Jorge,

Insert a bookmark named Date in the template where you want the date to
appear and create an autonew macro in the template with the command

ActiveDocument.Bookmarks("Date").Range.InsertBefore Format(DateAdd("d", - 1,
Date), "MMMM dd, yyyy")

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
macropod _ I appreciate it...
however I'm new and I dunno exactly what I should be placing into the
field..

I toggle to field code and see the entry but - I wanna just go to previous
day..

Any clues?
 
See http://addbalance.com/word/datefields2.htm for information on the
different kinds of ways to make a date calculation work. You may want to
simply download Chris Woodman's free Add-In that will build the field you
want for you.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Back
Top