How to prevent the wdPaneComments pane from opening

C

Charlie Mac

I have a toolbar to add comments using:

Selection.Comments.Add Range:=Selection.Range
Selection.TypeText Text:=MyText

How do I prevent the wdPaneComments pane from opening.

The ActiveWindow.ActivePane.close, works but flashes the screen.


Please help. Thanks.
 
T

Tony Jollans

Why not just add the text directly and avoid the Comments Pane altogether?

Selection.Comments.Add Range:=Selection.Range, Text:=MyText
 
Top