Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
Hello,
Is there a way to copy a large, multi-sectioned document without copying the headers and footers? -- Thanks, MarkN |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
Hi Mark,
Is there a way to copy a large, multi-sectioned document without copying the headers and footers? Not in one step, no. The header/footer information (along with margin settings, number of columns) is stored "in" the section break. So you'd have to copy each section without the section break. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
Thanks for your prompt response. Is there a VBA solution for this, or I was
thinking about a macro to delete the headers and footers before copying the document. So I would run the header removing macro in the source document, copy and paste into the destination document and then close the source document without saving it. My plan seems pretty inefficient though. Do you have any better suggestions for a coded solution. -- Thanks in advance, MarkN "Cindy M." wrote: Hi Mark, Is there a way to copy a large, multi-sectioned document without copying the headers and footers? Not in one step, no. The header/footer information (along with margin settings, number of columns) is stored "in" the section break. So you'd have to copy each section without the section break. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
If you're going to use VBA, rather than removing the headers and footers, it
would be easier just to copy the content of the document body section by section, and paste that into the new document. "MarkN" wrote in message ... Thanks for your prompt response. Is there a VBA solution for this, or I was thinking about a macro to delete the headers and footers before copying the document. So I would run the header removing macro in the source document, copy and paste into the destination document and then close the source document without saving it. My plan seems pretty inefficient though. Do you have any better suggestions for a coded solution. -- Thanks in advance, MarkN "Cindy M." wrote: Hi Mark, Is there a way to copy a large, multi-sectioned document without copying the headers and footers? Not in one step, no. The header/footer information (along with margin settings, number of columns) is stored "in" the section break. So you'd have to copy each section without the section break. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
Good idea, I'm off to borrow some code...
-- Thanks, MarkN "Jezebel" wrote: If you're going to use VBA, rather than removing the headers and footers, it would be easier just to copy the content of the document body section by section, and paste that into the new document. "MarkN" wrote in message ... Thanks for your prompt response. Is there a VBA solution for this, or I was thinking about a macro to delete the headers and footers before copying the document. So I would run the header removing macro in the source document, copy and paste into the destination document and then close the source document without saving it. My plan seems pretty inefficient though. Do you have any better suggestions for a coded solution. -- Thanks in advance, MarkN "Cindy M." wrote: Hi Mark, Is there a way to copy a large, multi-sectioned document without copying the headers and footers? Not in one step, no. The header/footer information (along with margin settings, number of columns) is stored "in" the section break. So you'd have to copy each section without the section break. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Copy everything except headers and footers
You can use File | Save As to create a new document, and then manually
clear headers and footers in the newly created document. If you want to automate the header/footer deletion, try the following very simple macro, which a knowledgeable programmer probably could improve (or replace with a more efficient one): Sub DeleteHeadersFooters() Dim s As Section For Each s In ActiveDocument.Sections s.Headers(wdHeaderFooterEvenPages).Range.Delete s.Headers(wdHeaderFooterFirstPage).Range.Delete s.Headers(wdHeaderFooterPrimary).Range.Delete s.Footers(wdHeaderFooterEvenPages).Range.Delete s.Footers(wdHeaderFooterFirstPage).Range.Delete s.Footers(wdHeaderFooterPrimary).Range.Delete Next s End Sub -- Stefan Blom Microsoft Word MVP "MarkN" wrote in message ... Hello, Is there a way to copy a large, multi-sectioned document without copying the headers and footers? -- Thanks, MarkN |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I copy entire pages including Headers and Footers | Microsoft Word Help | |||
Copy a Word letter complete with headers and footers to Outlook | Microsoft Word Help | |||
Headers and footers printing different size on odd and even pages | Microsoft Word Help | |||
Problems with Heades and Footers | Microsoft Word Help | |||
Doc Template & headers and footers | Microsoft Word Help |