M
Mark64
I have a Word document which contains a macro to update the entire document,
which is connected to a toolbar button. The macro is as follows:
Sub UpdateDocument()
'
' Macro1 Macro
' Macro recorded 8/25/2005 by mark
'
Dim pRange As Word.Range
For Each pRange In ActiveDocument.StoryRanges
Do Until pRange Is Nothing
pRange.Fields.Update
Set pRange = pRange.NextStoryRange
Loop
Next
End Sub
When I run this macro it goes through the entire document, including the
headers and footers, and updates all of the fields. In this document all of
the headers are the same and I have a single fill-in field in the header in
the first section (it contains several sections, but the headers are all set
as "Same as Previous"). Therefore it asks me what I want to fill-in the
field with. Every once in awhile it will ask me twice, which I think is odd
because there is only one of these fields in the header. Then after I do
this I try to save and it gives me an error that the disk is full (which it
definitely is not). The error message is as follows:
The disk is full. Free some space on this drive, or save the document on
another disk. Try one or more of the following:
*Close any unneeded documents, programs, and windows.
*Save the document on another disk.
I have tried these solutions and it still doesn't save. Can anyone help me
with this?
Thank you in advance,
Mark64
which is connected to a toolbar button. The macro is as follows:
Sub UpdateDocument()
'
' Macro1 Macro
' Macro recorded 8/25/2005 by mark
'
Dim pRange As Word.Range
For Each pRange In ActiveDocument.StoryRanges
Do Until pRange Is Nothing
pRange.Fields.Update
Set pRange = pRange.NextStoryRange
Loop
Next
End Sub
When I run this macro it goes through the entire document, including the
headers and footers, and updates all of the fields. In this document all of
the headers are the same and I have a single fill-in field in the header in
the first section (it contains several sections, but the headers are all set
as "Same as Previous"). Therefore it asks me what I want to fill-in the
field with. Every once in awhile it will ask me twice, which I think is odd
because there is only one of these fields in the header. Then after I do
this I try to save and it gives me an error that the disk is full (which it
definitely is not). The error message is as follows:
The disk is full. Free some space on this drive, or save the document on
another disk. Try one or more of the following:
*Close any unneeded documents, programs, and windows.
*Save the document on another disk.
I have tried these solutions and it still doesn't save. Can anyone help me
with this?
Thank you in advance,
Mark64