E
Edward Mendelson
Hello,
I'm trying to write a macro that will do the following:
1. Copy all of a document (including headers and footnotes, etc.) into an
untitled blank document in a separate window. (This part is easy Ctrl-A,
Ctrl-N, Ctrl-V does the job, producing this code:
Selection.WholeStory
Selection.Copy
Documents.Add DocumentType:=wdNewBlankDocument
Selection.PasteAndFormat (wdPasteDefault)
2. Make some changes in the untitled copy of the original document and ask
the user to approve the modified version.
3. Select and copy all of the changed untitled copy, close the untitled
document, and paste the changed version over the orginal document, replacing
the original copy. Unfortunately, when I do this, only the main story in the
original document is replaced; the modified versions of the headers and
footers and footnotes are not changed. Is there a way to select every story
in the original document, and paste over all of them?
Am I missing something really obvious here?
Many thanks for any help.
Edward Mendelson
Contributing Editor
PC Magazine
I'm trying to write a macro that will do the following:
1. Copy all of a document (including headers and footnotes, etc.) into an
untitled blank document in a separate window. (This part is easy Ctrl-A,
Ctrl-N, Ctrl-V does the job, producing this code:
Selection.WholeStory
Selection.Copy
Documents.Add DocumentType:=wdNewBlankDocument
Selection.PasteAndFormat (wdPasteDefault)
2. Make some changes in the untitled copy of the original document and ask
the user to approve the modified version.
3. Select and copy all of the changed untitled copy, close the untitled
document, and paste the changed version over the orginal document, replacing
the original copy. Unfortunately, when I do this, only the main story in the
original document is replaced; the modified versions of the headers and
footers and footnotes are not changed. Is there a way to select every story
in the original document, and paste over all of them?
Am I missing something really obvious here?
Many thanks for any help.
Edward Mendelson
Contributing Editor
PC Magazine