Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
MarcP MarcP is offline
external usenet poster
 
Posts: 1
Default "Current date" field: how to stop updating for all Worddocuments?

In MS Word, I sometimes open old invoice documents to print and then present
them to customers who request an invoice copy. My problem is that the date on
the form is a field set to update automatically. I want the date that the
invoice was made to be reflected on the invoice, not the current date. Is it
possible to turn this date field auto-update feature off shortly before I
open the old invoice document to print it? Thank you.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default "Current date" field: how to stop updating for all Worddocuments?

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and then present
them to customers who request an invoice copy. My problem is that the date on
the form is a field set to update automatically. I want the date that the
invoice was made to be reflected on the invoice, not the current date. Is it
possible to turn this date field auto-update feature off shortly before I
open the old invoice document to print it? Thank you.


Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a field
code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Wayne Wayne is offline
external usenet poster
 
Posts: 41
Default "Current date" field: how to stop updating for all Worddocumen

Thanks Jay. This works fine but is there a way to turn off the automatic
updating for all word files?

"Jay Freedman" wrote:

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and then present
them to customers who request an invoice copy. My problem is that the date on
the form is a field set to update automatically. I want the date that the
invoice was made to be reflected on the invoice, not the current date. Is it
possible to turn this date field auto-update feature off shortly before I
open the old invoice document to print it? Thank you.


Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a field
code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default "Current date" field: how to stop updating for all Worddocumen

Hi Wayne,

You can do this if you go into Tools|OptionsGeneral and uncheck 'Update automatic links at open' and Tools|Options|Print and uncheck
'Update fields'.

Alternatively, you can lock fields individually or collectively via Ctrl-F11 and unlock them by Ctrl-Shift-F11. You can also convert
fields to plain text individually or collectively via Ctrl-Shift-F9

--
Cheers
macropod
[MVP - Microsoft Word]


"Wayne" wrote in message ...
Thanks Jay. This works fine but is there a way to turn off the automatic
updating for all word files?

"Jay Freedman" wrote:

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and then present
them to customers who request an invoice copy. My problem is that the date on
the form is a field set to update automatically. I want the date that the
invoice was made to be reflected on the invoice, not the current date. Is it
possible to turn this date field auto-update feature off shortly before I
open the old invoice document to print it? Thank you.


Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a field
code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Wayne Wayne is offline
external usenet poster
 
Posts: 41
Default "Current date" field: how to stop updating for all Worddocumen

Hi Macropod,

I"m in word2007 and the print option doesn't seem to be there. I have
unchecked the update field in options.
Thanks

"macropod" wrote:

Hi Wayne,

You can do this if you go into Tools|OptionsGeneral and uncheck 'Update automatic links at open' and Tools|Options|Print and uncheck
'Update fields'.

Alternatively, you can lock fields individually or collectively via Ctrl-F11 and unlock them by Ctrl-Shift-F11. You can also convert
fields to plain text individually or collectively via Ctrl-Shift-F9

--
Cheers
macropod
[MVP - Microsoft Word]


"Wayne" wrote in message ...
Thanks Jay. This works fine but is there a way to turn off the automatic
updating for all word files?

"Jay Freedman" wrote:

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and then present
them to customers who request an invoice copy. My problem is that the date on
the form is a field set to update automatically. I want the date that the
invoice was made to be reflected on the invoice, not the current date. Is it
possible to turn this date field auto-update feature off shortly before I
open the old invoice document to print it? Thank you.

Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a field
code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default "Current date" field: how to stop updating for all Worddocumen

The following macro will replace all the date fields in documents in a
folder with createdate fields. Change it in the template for new documents.

Sub BatchFixDates()
Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document
Dim iFld As Integer
Dim fDialog As FileDialog
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)

With fDialog
.Title = "Select Folder containing the documents to be modifed and click
OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
PathToUse = fDialog.SelectedItems.Item(1)
If Right(PathToUse, 1) "\" Then PathToUse = PathToUse + "\"
End With

If Documents.Count 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If
myFile = Dir$(PathToUse & "*.do?")

While myFile ""
Set myDoc = Documents.Open(PathToUse & myFile)
ActiveWindow.View.ShowFieldCodes = True
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldDate Then
.Code.Text = Replace(.Code.Text, "DATE", "CREATEDATE")
.Update
End If
End With
Next iFld
ActiveWindow.View.ShowFieldCodes = False
myDoc.Close SaveChanges:=wdSaveChanges
myFile = Dir$()
Wend
End Sub

http://www.gmayor.com/installing_macro.htm


--

Graham Mayor - Word MVP

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



Wayne wrote:
Thanks Jay. This works fine but is there a way to turn off the
automatic updating for all word files?

"Jay Freedman" wrote:

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and
then present them to customers who request an invoice copy. My
problem is that the date on the form is a field set to update
automatically. I want the date that the invoice was made to be
reflected on the invoice, not the current date. Is it possible to
turn this date field auto-update feature off shortly before I open
the old invoice document to print it? Thank you.


Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a
field code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.



  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default "Current date" field: how to stop updating for all Worddocumen

On further reflection, if the fields have been entered manually they may not
be in upper case and therefore the macro will ignore them, so change the
lines

If .Type = wdFieldDate Then
.Code.Text = Replace(.Code.Text, "DATE", "CREATEDATE")
.Update
End If


to
If .Type = wdFieldDate Then
.Code.Text = Replace(UCase(.Code.Text), "DATE", "CREATEDATE")
.Update
End If
If .Type = wdFieldTime Then
.Code.Text = Replace(UCase(.Code.Text), "TIME", "CREATEDATE")
.Update
End If

which should cover all eventualities.

--

Graham Mayor - Word MVP

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



Graham Mayor wrote:
The following macro will replace all the date fields in documents in a
folder with createdate fields. Change it in the template for new
documents.
Sub BatchFixDates()
Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document
Dim iFld As Integer
Dim fDialog As FileDialog
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)

With fDialog
.Title = "Select Folder containing the documents to be modifed and
click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
PathToUse = fDialog.SelectedItems.Item(1)
If Right(PathToUse, 1) "\" Then PathToUse = PathToUse + "\"
End With

If Documents.Count 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If
myFile = Dir$(PathToUse & "*.do?")

While myFile ""
Set myDoc = Documents.Open(PathToUse & myFile)
ActiveWindow.View.ShowFieldCodes = True
For iFld = ActiveDocument.Fields.Count To 1 Step -1
With ActiveDocument.Fields(iFld)
If .Type = wdFieldDate Then
.Code.Text = Replace(.Code.Text, "DATE", "CREATEDATE")
.Update
End If
End With
Next iFld
ActiveWindow.View.ShowFieldCodes = False
myDoc.Close SaveChanges:=wdSaveChanges
myFile = Dir$()
Wend
End Sub

http://www.gmayor.com/installing_macro.htm



Wayne wrote:
Thanks Jay. This works fine but is there a way to turn off the
automatic updating for all word files?

"Jay Freedman" wrote:

On Fri, 8 Jun 2007 10:42:00 -0700, MarcP
wrote:

In MS Word, I sometimes open old invoice documents to print and
then present them to customers who request an invoice copy. My
problem is that the date on the form is a field set to update
automatically. I want the date that the invoice was made to be
reflected on the invoice, not the current date. Is it possible to
turn this date field auto-update feature off shortly before I open
the old invoice document to print it? Thank you.

Change the Date field to a CreateDate field (details about the
difference are at
http://www.word.mvps.org/FAQs/TblsFl...ateFields.htm).

Right-click the date and choose Toggle Field Codes. You'll see a
field code that starts with either DATE or TIME. Change that word to
CREATEDATE. Then right-click it and choose Update Field. This will
still show the date the document was created, even on old documents
after the date field has updated.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CREATEDATE Field Not Updating with "Save As" PBJ Microsoft Word Help 4 May 10th 07 01:41 PM
How do I change page range "All" to "current Pages" in print menu Shiv Microsoft Word Help 1 May 4th 07 01:13 PM
"Print current page" should have a "+n pages" field. rawahoho Microsoft Word Help 5 November 16th 06 03:26 PM
Error msge"Microsoft office "" not been installed for the current unjida por Dios Microsoft Word Help 1 April 21st 06 06:51 PM
How do I stop the DATE field from automatically updating each tim. Southern Rivers Microsoft Word Help 2 January 25th 05 11:22 PM


All times are GMT +1. The time now is 04:37 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"