Toggling comments on / off in Word

J

Jonathan Newcombe

Hello, trying to toggle comments on & off for a word file. I've tried
using:
ActiveDocument.Comments(1).ShowTip = True
however, this doesn't seem to work. Any help would be appreciated.
 
D

dz

Depending on your version of Word, comments have been
combined with track changes, and thus use balloons for the
most obvious comment view (Tools, options, track changes
tab). The showtip method just allows the user to light up
a comment when the user rolls the mouse over it = not very
useful.

Programically, you need something like the following:

ActiveWindow.View.RevisionsMode = wdBalloonRevisions
ActiveDocument.ActiveWindow.View.ShowHiddenText = True
ActiveDocument.Comments.ShowBy = "All Reviewers"
ActiveWindow.View.ShowComments = True

However, I have not been able to get "All Reviewers" to
work - had to set it manually through the reviewing
toolbar under the "Show" drop down menu. I believe All
Reviewers is the default, though.

To toggle the comments off, then you need:

ActiveWindow.View.ShowComments = False
 
N

Nuke'em

Thanks, this is what I was looking for.

dz said:
Depending on your version of Word, comments have been
combined with track changes, and thus use balloons for the
most obvious comment view (Tools, options, track changes
tab). The showtip method just allows the user to light up
a comment when the user rolls the mouse over it = not very
useful.

Programically, you need something like the following:

ActiveWindow.View.RevisionsMode = wdBalloonRevisions
ActiveDocument.ActiveWindow.View.ShowHiddenText = True
ActiveDocument.Comments.ShowBy = "All Reviewers"
ActiveWindow.View.ShowComments = True

However, I have not been able to get "All Reviewers" to
work - had to set it manually through the reviewing
toolbar under the "Show" drop down menu. I believe All
Reviewers is the default, though.

To toggle the comments off, then you need:

ActiveWindow.View.ShowComments = False
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top