Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I’m working with a large document that I inherited. It has about 150 section breaks (due to flipping back and forth between portrait for text and landscape for figures). Due to the different orientations, none of these section breaks are set to “same as previous”.
In the header of each is a field that points to a custom document property. When I change the document property, the fields in the headers don’t automatically update. Is there a way for me to command Word to update this field in in the header in all 150 sections? (I’ll take either automatic or manual methods.) I don’t want to update each one individually. (Mind numbing!) I tried “select all” then F9. The “select all” didn’t include the headers. I don’t want to update all the fields in the entire document. (There are many others that I don’t want to update, and it takes forever anyway.) Any other ideas? Thanks in advance. |
#2
![]()
Posted to microsoft.public.word.formatting.longdocs
|
|||
|
|||
![]()
To update fields in headers only --
Dim pRange as Word.Range Set pRange = activedocument.StoryRanges(wdPrimaryHeaderStory) Do pRange.Fields.Update set pRange = pRange.NextStoryRange Loop until pRange is nothing You will need to be more sophisticated if you have different firstpage or left/right headers. "Tallbob29" wrote in message ... I'm working with a large document that I inherited. It has about 150 section breaks (due to flipping back and forth between portrait for text and landscape for figures). Due to the different orientations, none of these section breaks are set to "same as previous". In the header of each is a field that points to a custom document property. When I change the document property, the fields in the headers don't automatically update. Is there a way for me to command Word to update this field in in the header in all 150 sections? (I'll take either automatic or manual methods.) I don't want to update each one individually. (Mind numbing!) I tried "select all" then F9. The "select all" didn't include the headers. I don't want to update all the fields in the entire document. (There are many others that I don't want to update, and it takes forever anyway.) Any other ideas? Thanks in advance. -- Tallbob29 |
#3
![]()
Posted to microsoft.public.word.formatting.longdocs
|
|||
|
|||
![]()
You'll find a macro that updates all ranges in the document he
http://groups.google.com/group/micro...ment/browse_fr m/thread/b5883316c1455f3e/d7ec442a3bfa7b1d%23d7ec442a3bfa7b1d On 8/22/06 12:04 PM, "Tallbob29" wrote: I€šm working with a large document that I inherited. It has about 150 section breaks (due to flipping back and forth between portrait for text and landscape for figures). Due to the different orientations, none of these section breaks are set to €žsame as previous€°. In the header of each is a field that points to a custom document property. When I change the document property, the fields in the headers don€št automatically update. Is there a way for me to command Word to update this field in in the header in all 150 sections? (I€šll take either automatic or manual methods.) I don€št want to update each one individually. (Mind numbing!) I tried €žselect all€° then F9. The €žselect all€° didn€št include the headers. I don€št want to update all the fields in the entire document. (There are many others that I don€št want to update, and it takes forever anyway.) Any other ideas? Thanks in advance. -- Daiya Mitchell, MVP Mac/Word Word FAQ: http://www.word.mvps.org/ MacWord Tips: http://word.mvps.org/Mac/WordMacHome.html What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/ |
#4
![]()
Posted to microsoft.public.word.formatting.longdocs
|
|||
|
|||
![]()
That's a pretty lousy bit of code; and it updates ALL fields not just fields
in the headers, which the OP doesn't want. "Daiya Mitchell" wrote in message .. . You'll find a macro that updates all ranges in the document he http://groups.google.com/group/micro...ment/browse_fr m/thread/b5883316c1455f3e/d7ec442a3bfa7b1d%23d7ec442a3bfa7b1d On 8/22/06 12:04 PM, "Tallbob29" wrote: I,m working with a large document that I inherited. It has about 150 section breaks (due to flipping back and forth between portrait for text and landscape for figures). Due to the different orientations, none of these section breaks are set to "same as previous?. In the header of each is a field that points to a custom document property. When I change the document property, the fields in the headers don,t automatically update. Is there a way for me to command Word to update this field in in the header in all 150 sections? (I,ll take either automatic or manual methods.) I don,t want to update each one individually. (Mind numbing!) I tried "select all? then F9. The "select all? didn,t include the headers. I don,t want to update all the fields in the entire document. (There are many others that I don,t want to update, and it takes forever anyway.) Any other ideas? Thanks in advance. -- Daiya Mitchell, MVP Mac/Word Word FAQ: http://www.word.mvps.org/ MacWord Tips: http://word.mvps.org/Mac/WordMacHome.html What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/ |
#5
![]()
Posted to microsoft.public.word.formatting.longdocs
|
|||
|
|||
![]()
Whoops, I missed the part about not updating other fields.
On 8/22/06 3:39 PM, "Jezebel" wrote: That's a pretty lousy bit of code; and it updates ALL fields not just fields in the headers, which the OP doesn't want. "Daiya Mitchell" wrote in message .. . You'll find a macro that updates all ranges in the document he http://groups.google.com/group/micro...ment/browse_fr m/thread/b5883316c1455f3e/d7ec442a3bfa7b1d%23d7ec442a3bfa7b1d On 8/22/06 12:04 PM, "Tallbob29" wrote: I,m working with a large document that I inherited. It has about 150 section breaks (due to flipping back and forth between portrait for text and landscape for figures). Due to the different orientations, none of these section breaks are set to "same as previous?. In the header of each is a field that points to a custom document property. When I change the document property, the fields in the headers don,t automatically update. Is there a way for me to command Word to update this field in in the header in all 150 sections? (I,ll take either automatic or manual methods.) I don,t want to update each one individually. (Mind numbing!) I tried "select all? then F9. The "select all? didn,t include the headers. I don,t want to update all the fields in the entire document. (There are many others that I don,t want to update, and it takes forever anyway.) Any other ideas? Thanks in advance. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
headers and footers and section breaks | Page Layout | |||
Fields in one document updating other documents | Microsoft Word Help | |||
How to change section headers and footers in a macro? | Page Layout | |||
fields do not update from section to section | Microsoft Word Help | |||
refreshing / updating fields | Microsoft Word Help |