Hello,
Is there a way to delete the first line (or just remove whatever is on the
first line) in a word document?
I have four commandButtons on the first line in my word doc that I want to
be removed when I run a macro I have that sends the document in the body of
an email message.
I was searching through the object browser and came accross
wdUnits(wdLines). Was I on the right path with that?

Re: Delete a Line by Greg

Greg
Wed Jul 23 21:25:00 PDT 2008

On Jul 23, 4:56=A0pm, matt <m...@discussions.microsoft.com> wrote:
> Hello,
> Is there a way to delete the first line (or just remove whatever is on th=
e
> first line) in a word document?
> I have four commandButtons on the first line in my word doc that I want t=
o
> be removed when I run a macro I have that sends the document in the body =
of
> an email message.
> I was searching through the object browser and came accross
> wdUnits(wdLines). Was I on the right path with that?

Sub ScratchMacro()
Dim oRng As Word.Range
With ActiveDocument
'Move IP to the start of the document
.Range(0, 0).Select
Set oRng =3D .Bookmarks("\line").Range
oRng.Delete
End With
End Sub