Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Karlsruhe, Germany
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copy-Pasting comments problem (2002, German)

    To get a comment, complete with its original author and date of creation, onto the clipboard, it seems to be necessary to take a bit of text before and after it along too. I can live with that, but how can you get a comment that is at the very beginning of a document onto the clipboard? I have tried inserting page breaks, documents, tables etc. but the comment always remains at the beginning. Is there a trick, or perhaps something in VBA that I build into a simple macro?

    Thanks for any help.

    Ed Colaianni
    edc@post.harvard.edu

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

    Re: Copy-Pasting comments problem (2002, German)

    You can press Home while in the first line, then insert a space. The space will be inserted before the comment. If you then select and copy the space and the character after it, including the comment.

    The following rather clunky code will:
    - Insert the space,
    - Copy the space and the character after it to the clipboard, including the comment.
    - Delete the space.

    With Selection
    .HomeKey Unit:=wdStory
    .HomeKey Unit:=wdLine
    .TypeText Text:=" "
    .HomeKey Unit:=wdLine
    .MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
    .Copy
    .HomeKey Unit:=wdLine
    .Delete Unit:=wdCharacter
    End With

    You can incorporate the code into a macro, and assign it to a custom toolbar button or keyboard shortcut.

  3. #3
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Boston, Massachusetts, USA
    Posts
    389
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy-Pasting comments problem (2002, German)

    Hi Ed,

    You could try something like this:

    <pre>Sub GetSelectedCommentToClipboard()
    Selection.Comments(1).Reference.Copy
    End Sub
    </pre>


  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy-Pasting comments problem (2002, German)

    Interesting. I have Word 2000 & it works a little different. First, I can't insert a comment at the beginning of the document unless the document is blank. Word always inserts the comment immediately after the word following the insertion point. I hadn't noticed that before. However, once I have a comment at the beginning, I can copy it without selecting any text after it. It will then show a yellow highlight & show the author & comment.

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

    Re: Copy-Pasting comments problem (2002, German)

    Like many other aspects of Word, the way comments are treated is different in Word 2002.

Posting Permissions

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