A
Allen_N
I'm trying to use Word for same elementary text processing. I just want to
remove 6 lines from each page (to get rid of page headers in a big report).
My macro works, but it doesn't know when to stop. The macro body is as
follows:
Do
Selection.MoveDown Unit:=wdLine, Count:=6, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveDown Unit:=wdLine, Count:=48
Loop Until Selection.Text = ""
(N.B. I set orientation to Landscape and fiddled with margins until all
pages began with the header.)
Several people have asked similar questioins, but everybody that answers
seems to have better methods; no one seems inclined to answer the question:
how does the macro know when the selection has become the end of the document?
remove 6 lines from each page (to get rid of page headers in a big report).
My macro works, but it doesn't know when to stop. The macro body is as
follows:
Do
Selection.MoveDown Unit:=wdLine, Count:=6, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.MoveDown Unit:=wdLine, Count:=48
Loop Until Selection.Text = ""
(N.B. I set orientation to Landscape and fiddled with margins until all
pages began with the header.)
Several people have asked similar questioins, but everybody that answers
seems to have better methods; no one seems inclined to answer the question:
how does the macro know when the selection has become the end of the document?