Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2014, 09:36 AM
Faugs Faugs is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 32bit Save Every 2 pages of Word Document as the First Line of Text Office 2010 32bit
Novice
Save Every 2 pages of Word Document as the First Line of Text
 
Join Date: Aug 2014
Posts: 5
Faugs is on a distinguished road
Smile Save Every 2 pages of Word Document as the First Line of Text

Hi all,

I have a document that is hundreds of pages long. I'd like split and save every 2 pages. I'd like to save each document using the first line of text on every odd page.

See example below:

Page 1 and 2 - Save as a .docx based on the first line of text on page 1.


Page 3 and 4 - Save as a .docx based on the first line of text on page 3.
Page 5 and 6 - Save as a .docx based on the first line of text on page 5.
Page 7 and 8 - Save as a .docx based on the first line of text on page 7.
Page 9 and 10 - Save as a .docx based on the first line of text on page 9.

...this would repeat until all pages have been saved.

Please let me know if there is macro available that would accomplish this. Thank you!!
Reply With Quote
  #2  
Old 08-10-2014, 02:58 PM
macropod's Avatar
macropod macropod is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 32bit Save Every 2 pages of Word Document as the First Line of Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Assuming your page pairs are terminated by Section breaks, you could use the SplitMergedDocument macro under the 'Split Merged Output to Separate Documents' topic here: https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 08-12-2014, 10:12 AM
Faugs Faugs is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 32bit Save Every 2 pages of Word Document as the First Line of Text Office 2010 32bit
Novice
Save Every 2 pages of Word Document as the First Line of Text
 
Join Date: Aug 2014
Posts: 5
Faugs is on a distinguished road
Default

Hi Macropod,

The page pairs are not separated by section breaks, they are naturally separated by the page's length. However, since every page contains the same layout with different content, every two pages are their own sections.

Do you know if there is a macro for such a case?

Thank you!
Reply With Quote
  #4  
Old 08-12-2014, 02:52 PM
macropod's Avatar
macropod macropod is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 32bit Save Every 2 pages of Word Document as the First Line of Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

What, if anything, delineates the breaks between the pages, especially the page pairs?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 08-13-2014, 08:54 PM
fumei fumei is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 64bit Save Every 2 pages of Word Document as the First Line of Text Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Quote:
every two pages are their own sections.
Sorry, but the only thing that makes its own section is a section break.

It seems that the only thing defining page 2 from page 3 is that page 3 is there because of the length of content on page 2. If there is no defining break (beside length) it makes it much harder. Not impossible, but you have to extract your two pages as you go, using ranges. This is why it is a good idea to structure documents using the way Word defines structure, i.e. section breaks.

To Word, a "section" is ONLY a section if it is defined as such with section breaks. However, as macropod asks, is there anything else that could possibly be used to delineate pages? Is there anything that can be used to identify the 1 & 2 pairing from the 3 & 4 pairing?
Reply With Quote
  #6  
Old 08-13-2014, 09:05 PM
macropod's Avatar
macropod macropod is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 32bit Save Every 2 pages of Word Document as the First Line of Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Manual page breaks and paragraphs with the 'page break before' attribute would probably work just fine too, in this scenario.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 08-13-2014, 11:50 PM
fumei fumei is offline Save Every 2 pages of Word Document as the First Line of Text Windows 7 64bit Save Every 2 pages of Word Document as the First Line of Text Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Yup. In any case Faugs, whether by adding manual page breaks/paragraphs with page breaks before; OR adding section breaks, for efficient processing you need something to identify the chunks you want.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word ask to save template whenever i save a derived document jorbjo Word 3 10-04-2012 10:52 AM
Save Every 2 pages of Word Document as the First Line of Text Save Filename using Document Text Knawl Word 11 10-10-2011 03:00 AM
Save Every 2 pages of Word Document as the First Line of Text Cannot save Word document don madsen Word 6 09-16-2011 09:02 PM
How to save Pages doc as WORD doc? pamela Word 2 11-11-2010 06:20 AM
I have a Word 2007 document that only show 13 pages xeonix Word 0 07-06-2009 08:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft