PDA

View Full Version : Solved: Viewing Comments



Opv
07-06-2012, 06:11 PM
Is there a way to modify the following script to cause Word to display permanently (until turned off) the full text of comments rather than having to hover over the comment to view the text in popup showtip?


Sub DisplayComments()
Dim objPara As Paragraph
Dim objComment As Comment
Dim strRemarks As String
For Each objPara In ActiveDocument.Paragraphs
strRemarks = ""
For Each objComment In objPara.Range.COMMENTS
If Len(strRemarks) = 0 Then
strRemarks = objComment.Range.Text
Else
strRemarks = strRemarks & ", " & _
objComment.Range.Text
End If
Next objComment
If Len(strRemarks) <> 0 Then _
Debug.Print strRemarks
Next objPara
End Sub


EDIT: Just for the sake of clarity, I mean by my question whether there is a way to display them inline (where they occur) rather than having to have to either hover over the comment or to display the comment window at the bottom of the screen.

Jay Freedman
07-07-2012, 02:21 PM
It appears that you're trying to reinvent the wheel. Word can do this natively by showing comments in "balloons". The control for this is in the Track Changes options dialog in Word 2003, and on the Review tab of the ribbon in 2007 and 2010.

When balloons are turned on, Word shrinks the display of the main text to make more space in the right margin for the balloons. If you try to duplicate the functionality with a macro, you would first have to modify the margins and/or the main text font size, which would then reflow the text and complicate the placement of your comments.

Opv
07-07-2012, 02:32 PM
It appears that you're trying to reinvent the wheel. Word can do this natively by showing comments in "balloons". The control for this is in the Track Changes options dialog in Word 2003, and on the Review tab of the ribbon in 2007 and 2010.

When balloons are turned on, Word shrinks the display of the main text to make more space in the right margin for the balloons. If you try to duplicate the functionality with a macro, you would first have to modify the margins and/or the main text font size, which would then reflow the text and complicate the placement of your comments.
I didn't realize my question would be effected by the version of Word I'm using. I should have mentioned that I am using Word 2000. It's not all that critical of an issue for me. I was just exploring the notion of having comments display inline similarly to the way they are in Scrivener for Windows, i.e., something I can see while editing the document but that does not print with the document. It sounds like something that, even if it was possible, would be more trouble than its worth for my purposes.

Thanks