View Single Post
Old 01-09-2009, 01:06 PM   #1
Bierkonig
Member
Bierkonig began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Dec 2008
Device: Sony PRS-700
need vba/word scripting help to turn inline text into header

I'm going about scanned (out of copyright!) text conversion to ebook in a very different way than most because i'm using reference texts and need to retain page numbers and section titles and a lot of formatting to make the texts useful.

I'm converting everything to RFT and then to PDF properly sized for my sony reader (prs-700). Here's my problem: in the RFT the first two lines after every section/page break (every second or third page) are text (a constantly changing text string) that I want to move into a header specific to the first page of that section. The two lines of text are separated by a hard return.

Can anyone help me figure out a vba script that would scan for section breaks, take those first two lines of text that immediately follow, and move those lines into a header that would default to a first-page-only header? The ideal would convert:

section break (next page)
A
B
text


into


section break (next page)
header: A B

text


thank you!

Last edited by Bierkonig; 01-09-2009 at 01:13 PM. Reason: clarification
Bierkonig is offline   Reply With Quote