My requirement is to capture additional information when a user gives a
comment. Additional information could be following:
1. severity
2. category of the comment(paraphrasing, grammar change, etc)
I need to do this as i want to do some reporting on the nature of the
comments given by a reviewer.
Any help would be highly appreciated.
Thank You
Chirag Gupta
There isn't anything you can add to the comment pane or balloons.
What you can do is write a macro in your template, and name the macro
InsertAnnotation(). That macro will run instead of the built-in command when the
user clicks the Insert > Comment menu item (or the Review > New Comment button
in Word 2007).
Inside the macro, you can launch a UserForm (a custom dialog box) that you
create to let the user enter the comment text, the severity and category, and
any other information you need. When the user clicks the OK button in the
UserForm, the items the user entered are passed back to the macro. The comment
text is used to create the actual comment, with code like this:
ActiveDocument.Comments.Add _
Range:=Selection.Range, _
Text:=sText
The other information can be stored in the document file as "document
variables", which can be retrieved by a macro that does the reporting.
A short tutorial on UserForms is at
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm. If you need help
with that or other aspects of the macro, please post in
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.word.vba.userforms
or
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.word.vba.beginners