Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Going Nuts in Fields Going Nuts in Fields is offline
external usenet poster
 
Posts: 1
Default Style and Field updating

I have made a template that has a Style format called Lot # this needs to be
typed in by the user of this template. Then that lot # has to appear in the
header and in a table on the next page. I have done this but when the lot #
is typed in, the header updates automatically but the table does not how do I
fix this?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
finalword finalword is offline
external usenet poster
 
Posts: 96
Default Style and Field updating

The table will not automatically update, but you can create a Macro in VBA
and then assign it to your original Lot Number field where the user is
entering the data, and this will make sure that all fields in the document
are updated after the user leaves the Lot Number field

Here is the macro:

Sub UpdateField()'
ActiveDocument.Fields.Update
End Sub

--Select the macro and copy it
--Open your Word document
--Hit ALT + F11 to open the VBA editor
--Paste in the window on the right
--File | Save
--File | Close and return to Word

--Double click on the field where the user enters the Lot number to get the
properties box
--In the middle of the box, you should see Run Macro On, under Exit, choose
the dropd-own arrow and select your macros name.
--OK your way out of the Properties box
--Protect your form (Form toolbar | click the lock button )
--Save

Go ahead and test it


"Going Nuts in Fields" wrote:

I have made a template that has a Style format called Lot # this needs to be
typed in by the user of this template. Then that lot # has to appear in the
header and in a table on the next page. I have done this but when the lot #
is typed in, the header updates automatically but the table does not how do I
fix this?

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Style and Field updating

Hi finalword,

That technique would only work if the field was a formfield, in which case you also wouldn't need a macro - all you'd need to do is
set the formfield's properties to 'calculate on exit'.

--
Cheers
macropod
[MVP - Microsoft Word]


"finalword" wrote in message ...
The table will not automatically update, but you can create a Macro in VBA
and then assign it to your original Lot Number field where the user is
entering the data, and this will make sure that all fields in the document
are updated after the user leaves the Lot Number field

Here is the macro:

Sub UpdateField()'
ActiveDocument.Fields.Update
End Sub

--Select the macro and copy it
--Open your Word document
--Hit ALT + F11 to open the VBA editor
--Paste in the window on the right
--File | Save
--File | Close and return to Word

--Double click on the field where the user enters the Lot number to get the
properties box
--In the middle of the box, you should see Run Macro On, under Exit, choose
the dropd-own arrow and select your macros name.
--OK your way out of the Properties box
--Protect your form (Form toolbar | click the lock button )
--Save

Go ahead and test it


"Going Nuts in Fields" wrote:

I have made a template that has a Style format called Lot # this needs to be
typed in by the user of this template. Then that lot # has to appear in the
header and in a table on the next page. I have done this but when the lot #
is typed in, the header updates automatically but the table does not how do I
fix this?


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Style and Field updating

Hi,

Unless you use a formfield or put your table in the header or footer, you'll have to update the table field manually. You can do
this by doing a Print Preview, selecting the table field and pressing F9 or by printing the document. The field will also update if
you save & close the document then re-open it.

--
Cheers
macropod
[MVP - Microsoft Word]


"Going Nuts in Fields" Going Nuts in wrote in message
...
I have made a template that has a Style format called Lot # this needs to be
typed in by the user of this template. Then that lot # has to appear in the
header and in a table on the next page. I have done this but when the lot #
is typed in, the header updates automatically but the table does not how do I
fix this?


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Going Nuts in Fields[_2_] Going Nuts in Fields[_2_] is offline
external usenet poster
 
Posts: 1
Default Style and Field updating

You can also update by right clicking the field and update. I was hoping
that I wouldn't have to train everyone on this. Was hoping for a easy quick
fix oh well such is life thanks for all your help.

"finalword" wrote:

The table will not automatically update, but you can create a Macro in VBA
and then assign it to your original Lot Number field where the user is
entering the data, and this will make sure that all fields in the document
are updated after the user leaves the Lot Number field

Here is the macro:

Sub UpdateField()'
ActiveDocument.Fields.Update
End Sub

--Select the macro and copy it
--Open your Word document
--Hit ALT + F11 to open the VBA editor
--Paste in the window on the right
--File | Save
--File | Close and return to Word

--Double click on the field where the user enters the Lot number to get the
properties box
--In the middle of the box, you should see Run Macro On, under Exit, choose
the dropd-own arrow and select your macros name.
--OK your way out of the Properties box
--Protect your form (Form toolbar | click the lock button )
--Save

Go ahead and test it


"Going Nuts in Fields" wrote:

I have made a template that has a Style format called Lot # this needs to be
typed in by the user of this template. Then that lot # has to appear in the
header and in a table on the next page. I have done this but when the lot #
is typed in, the header updates automatically but the table does not how do I
fix this?

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
Turn off STYLE UPDATING!! SusanLRConsultant Microsoft Word Help 11 October 1st 08 03:41 PM
Updating Normal style does not update all styles in document ChristyL Microsoft Word Help 1 June 16th 08 05:59 PM
Automatically updating style problems Ellen Microsoft Word Help 2 May 22nd 07 06:25 PM
updating a style DianaH New Users 3 July 25th 06 10:45 AM
Can't uncheck automatic style updating alex Microsoft Word Help 2 August 18th 05 09:00 PM


All times are GMT +1. The time now is 02:57 AM.

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"