Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Dec 2007
    Posts
    179
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi all,

    In the Word VBA Help, it gives the way to set a range to the end of a document as:

    Set myRange = ActiveDocument.Range _
    (Start:=ActiveDocument.Content.End - 1, _
    End:=ActiveDocument.Content.End - 1)

    Is there any way that is shorter/more_elegant than this?

    TIA

    - avi

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

    Set myRange = ActiveDocument.Content
    myRange.Collapse Direction:=wdCollapseEnd

Posting Permissions

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