S
Smudger Nowar
Windows XP Pro; Word 2003
I have a macro that starts with a basic text document and formats it
by inserting new lines and at a point where it finds some particular
text (Let's call it "This is the heading") it inserts a page break.
The initial text document can be anything from 1 to 400 pages long, so
I need something to get it to repeat the bit from the top of the page,
to the bit where it inserts the page break.
I've done similar in XL, using code like:- Do While activecell <>
####, but cannot work out how to do it in Word (I HVAE looked,
honest).
My code is something like this
Formats page 1, inserting some lines, generally making look good.
at certain text at bottom of page 1, inserts a page break.
On page 2 (this is where it needs to loop from), centres the first
three lines
inserts some blank lines,
formats some text
at certain text at bottom of page 2, inserts a page break.
so it should loop from "On page2" to inserting the page break at the
foot of page2 and go on until the end of the document.
Any help much appreciated.
TIA
Steve
Regards
Smudger
Check out the anti-war songs at:-
http://www.billysollox.com
http://www.soundclick.com/billysolloxandthespoonerrhythms
http://www.myspace.com/billysolloxthespoonerrhythms
I have a macro that starts with a basic text document and formats it
by inserting new lines and at a point where it finds some particular
text (Let's call it "This is the heading") it inserts a page break.
The initial text document can be anything from 1 to 400 pages long, so
I need something to get it to repeat the bit from the top of the page,
to the bit where it inserts the page break.
I've done similar in XL, using code like:- Do While activecell <>
####, but cannot work out how to do it in Word (I HVAE looked,
honest).
My code is something like this
Formats page 1, inserting some lines, generally making look good.
at certain text at bottom of page 1, inserts a page break.
On page 2 (this is where it needs to loop from), centres the first
three lines
inserts some blank lines,
formats some text
at certain text at bottom of page 2, inserts a page break.
so it should loop from "On page2" to inserting the page break at the
foot of page2 and go on until the end of the document.
Any help much appreciated.
TIA
Steve
Regards
Smudger
Check out the anti-war songs at:-
http://www.billysollox.com
http://www.soundclick.com/billysolloxandthespoonerrhythms
http://www.myspace.com/billysolloxthespoonerrhythms