Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    May 2001
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi All <br><br>can someone hel (English/Word/Office 97 SR2)

    Hi All

    can someone help please. I am using Word 97 SR2 and
    trying to write a peice of code that will allow me to go
    to a bookmanrk in the header of a document and insert a
    hard return.

    I have tried everything the basic thing I need is shown
    below but as you will see from looking at this it wont
    work. Any assistance in this would be gratly appreciated.

    With ActiveDocument
    .Bookmarks("tmb").Range.Text = Theresa And Then
    Selection.TypeParagraph
    End With


    Thanks in advance

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Hi All <br><br>can someone hel (English/Word/Office 97 SR2)

    Try

    ActiveDocument.Bookmarks("tmb").Range.Text = "Theresa" & vbCr

    In the first place, text you add must be in quotes.
    In the second place, doing something with the range of a bookmark doesn't select it, so your line Selection.TypeParagraph would insert a paragraph mark wherever you were in the document when you invoked the macro, not after the bookmark.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •