Comment insertion macro

Discussion in 'Word Programming' started by Walter Briscoe, Dec 23, 2013.

  1. I use Word 2003.
    To insert a comment box, I select some text, click Insert\Comment, type
    some text and move focus outside the box.
    I recorded a macro to automate a box, containing "Full stop?"
    with instructions
    Selection.Comments.Add Range:=Selection.Range
    Selection.TypeText Text:="Full stop?"

    when I ran that macro, it also opened another window containing a list
    of all the comments in the current document.
    I added a line to close that window:
    ActiveWindow.ActivePane.Close

    When investigating the behavior, I found
    Selection.Comments.Add Range:=Selection.Range, Text:="Full stop?"
    does not open the additional window.

    Why are the behaviors different?

    The loss of Google Groups search facilities means I was unable to
    reearch the question as I would have liked and others will have
    difficulty finding this thread. ;(
    --
    Walter Briscoe
     
    Walter Briscoe, Dec 23, 2013
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.