PC Review


Reply
Thread Tools Rate Thread

auto update of time when revising a document

 
 
James
Guest
Posts: n/a
 
      17th Dec 2010
HI

Just wondered if there is a way of automatically updating the time stamp and
version number in a heading / footer whenever a document is edited? Eg: in
my heading I have:

[doc name] [my name] [date last revised] [version number]

Cheers!

James


 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      17th Dec 2010
You could either create numbered versions e.g.
http://www.gmayor.com/save_numbered_versions.htm
or you could use docvariable fields to store the modification date and
version number. Funnily enough I have just updated my web page on that topic
to demonstrate how that could be done (for the date/time at least). Adding a
version number is simply a matter of incrementing a value stored in a doc
variable each time the document is saved. e.g.

On Error Resume Next
If ActiveDocument.Variables("varVersionNumber").Value = "" Then
ActiveDocument.Variables("varVersionNumber").Value = "1"
Else
ActiveDocument.Variables("varVersionNumber").Value = _
ActiveDocument.Variables("varVersionNumber").Value + 1
End If

Add the code to the two save macros shown at the end of
http://www.gmayor.com/stop_automatic_date_update.htm
and add a docvariable field {DocVariable varVersionNumber} to the document.

The macros on my web page do not update the headers.
You would need to include the example code from
http://www.gmayor.com/installing_macro.htm to update the header/footer
fields.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

"James" <(E-Mail Removed)> wrote in message
news:y6JOo.42955$(E-Mail Removed)2...
> HI
>
> Just wondered if there is a way of automatically updating the time stamp
> and version number in a heading / footer whenever a document is edited?
> Eg: in my heading I have:
>
> [doc name] [my name] [date last revised] [version number]
>
> Cheers!
>
> James
>
>



 
Reply With Quote
 
James
Guest
Posts: n/a
 
      20th Dec 2010
Great - thanks Graham! I'll have a play around and see what I can do
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto time into a word document baseballrob Microsoft Word Document Management 1 26th Mar 2008 03:42 AM
Auto time in document baseballrob Microsoft Word Document Management 1 26th Mar 2008 02:42 AM
Update auto checked but date and time do not update when I reopen =?Utf-8?B?bWdyYXk=?= Microsoft Word Document Management 1 2nd Feb 2007 03:46 AM
insert document and auto update as document is edited =?Utf-8?B?cGF0cm9u?= Microsoft Frontpage 1 15th Jun 2005 08:20 AM
Document created on Mac, revising on PC, spacing is off, is there. =?Utf-8?B?TWFyZ2FyZXQgTWlua2Vy?= Microsoft Access 1 11th Nov 2004 04:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.