Realistically, Word doesn't think in terms of "the top 7 lines": it deals with paragraphs, not lines (because changing the margins, for instance, will change the lines). You'd be far better off using Automation to change the top margin for the first page. And while you'd be doing it from Access, you're likely to get better help on the actual VBA code you need in a Word group.
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please)
"Chris" <chris[ at ]abc.com> wrote in message news:%23HK3X4x4GHA.1200[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text] > Hi Fred, I have not sent this to the wrong news group. > > My program is in access and I would like to use VBA to remove certain > lines from a word document. > > There will be an option for normal paper or letter headed paper in the > form. If the user selects the document and then selects letterheaded paper > i would like the top 7 lines of the word document to be removed. > > > > > "fredg" <fgutkind[ at ]example.invalid> wrote in message > news:mh1g16jdh8ps.1tpe7a9gecz89$.dlg[ at ]40tude.net... >> On Wed, 27 Sep 2006 16:48:23 +0100, Chris wrote: >> >>> Hi Group, In my application the user has the option of print using >>> letter >>> header paper or non letterheaded paper. >>> >>> If the user selects headed paper I would like to remove the top 7 lines >>> of >>> the word document. >>> >>> How would I do this? >> >> You have posted this message to the wrong newsgroup. >> The access in this groups name refers to Microsoft Access, a database >> program. >> Please repost to the correct newsgroup for the Word program version >> you are using. I would suggest you include your Windows and Office >> version number in the message. >> -- >> Fred >> Please respond only to this newsgroup. >> I do not reply to personal e-mail > >
|