Word 2000 Comments Pane

S

slnarasimhan

Hi,

I have this requirement wherein my user's want to use the Word 2000
comments pane instead of either ballooned text or Word Reviewing Pane.
I have a toolbar button that turns on this pane using :
.SplitSpecial = wdCommentsPane

And I have set the tracking options for balloons to Never.

Now, what happens is that whenever I try to edit my comment (right
click on Comment marker and 'Edit Comment') or add a new comment, Word
2003, automatically switches to the Reviewing Pane. This defeats my
purpose. Can anybody help me out here?? Can I intercept the Insert
Comment / Edit Comment events??

Thanks and Regards,
Laks
 
C

Cindy M -WordMVP-

I have this requirement wherein my user's want to use the Word 2000
comments pane instead of either ballooned text or Word Reviewing Pane.
I have a toolbar button that turns on this pane using :
.SplitSpecial = wdCommentsPane

And I have set the tracking options for balloons to Never.

Now, what happens is that whenever I try to edit my comment (right
click on Comment marker and 'Edit Comment') or add a new comment, Word
2003, automatically switches to the Reviewing Pane. This defeats my
purpose. Can anybody help me out here?? Can I intercept the Insert
Comment / Edit Comment events??
If you name macros in your project InsertAnnotation and AnnotationEdit
you should intercept the built-in commands. (Comments used to be called
Annotations, in the old WordBasic days.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
L

Laks

Hi Cindy,

I have been trying to override the commands with these macros you
specified and have been able to successfully do so for the
InsertAnnotation.

However, for AnnotationEdit, Word internally calls the
WordBasic.Annotation command and this brings up the reviewing pane
regardless. Even if I bring up the CommentsPane after this command, I
am not able to set the focus to the appropriate comment to be edited in
this pane.

Is there any way do this? Can I get the collection of comments from the
comments pane or something and set the selection appropriately?

Thanks and Regards,
Laks
 
C

Cindy M -WordMVP-

Hi Laks,

Have you tried doing this while in the NORMAL view? I don't think you'll
get that old pane in any other view...
I have been trying to override the commands with these macros you
specified and have been able to successfully do so for the
InsertAnnotation.

However, for AnnotationEdit, Word internally calls the
WordBasic.Annotation command and this brings up the reviewing pane
regardless. Even if I bring up the CommentsPane after this command, I
am not able to set the focus to the appropriate comment to be edited in
this pane.

Is there any way do this? Can I get the collection of comments from the
comments pane or something and set the selection appropriately?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
L

Laks

Hi Cindy,

Regardless of the view, WordBasic.AnnotationEdit seems to bring up the
WdRevisions (Word 2003 Reviewing pane). I have tried various
permutations and combinations here but to no avail....

Thanks and Regards,
Laks
 
C

Cindy M -WordMVP-

<[email protected]>
<VA.0000b518.0101ff2e@speedy>
<[email protected]>
Newsgroups: microsoft.public.office.developer.automation
NNTP-Posting-Host: 29.197.77.83.cust.bluewin.ch 83.77.197.29
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Lines: 1
Xref: number1.nntp.dca.giganews.com microsoft.public.office.developer.automation:10839

Hi Laks,
Regardless of the view, WordBasic.AnnotationEdit seems to bring up the
WdRevisions (Word 2003 Reviewing pane). I have tried various
permutations and combinations here but to no avail....
Well, let's back up here:

<<However, for AnnotationEdit, Word internally calls the
WordBasic.Annotation command and this brings up the reviewing pane
regardless. Even if I bring up the CommentsPane after this command, I
am not able to set the focus to the appropriate comment to be edited in
this pane.>>

If I name a macro AnnnotationEdit, then put something in it (a MsgBox,
for example), Word only shows the message box. It doesn't display any
task panes. So, what more specifically is your code doing that's
displaying ANY panes at all? Please show us the procedure (or at least
the relevant part).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
L

Laks

If I name a macro AnnnotationEdit, then put something in it (a MsgBox,
This is perfect and this is what it does for me too. But when I include
the code for edit, i.e. WordBasic.AnnotationEdit, then Word 2003
reviewing pane comes up. Here's the code that I am using...

Sub AnnotationEdit()
WordBasic.AnnotationEdit
With ActiveDocument.ActiveWindow.View
.SplitSpecial = wdPaneComments
End With
End Sub

What this does is that it brings up the comments pane, but does not set
the focus on the comment that we want to edit. If I do not have the
..SplitSpecial, the Word 2003 reviewing pane comes up (in the normal
view or when baloons are to never, regardless of the view).

Laks.
 
C

Cindy M -WordMVP-

Hi Laks,

OK, I think I'm following a bit better, now. But I'm not sure I'm with
you 100% The user wants to edit a comment, so he right-clicks(?) the
comment and choosed "Edit Comment". Your macro runs. The comments pane is
displayed, but...

The focus isn't in the correct place - and this is where you're stuck?

How about something more like this?

Sub AnnotationEdit()
With ActiveDocument.ActiveWindow.View
.SplitSpecial = wdPaneComments
End With
Selection.Comments(1).Range.Select
Selection.Collapse wdCollapseEnd 'IP at end of current comment text
End Sub
This is perfect and this is what it does for me too. But when I include
the code for edit, i.e. WordBasic.AnnotationEdit, then Word 2003
reviewing pane comes up. Here's the code that I am using...

Sub AnnotationEdit()
WordBasic.AnnotationEdit
With ActiveDocument.ActiveWindow.View
.SplitSpecial = wdPaneComments
End With
End Sub

What this does is that it brings up the comments pane, but does not set
the focus on the comment that we want to edit. If I do not have the
..SplitSpecial, the Word 2003 reviewing pane comes up (in the normal
view or when baloons are to never, regardless of the view).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
L

Laks

Hi Cindy,

Thanks very much... I used an adapted version of the above and I believ
to have solved the problem... Let me just put the tentative solution
here for the benefit of others..

Sub AnnotationEdit()
Selection.Expand (WdUnits.wdWord)
Dim i As Integer
If (Selection.Comments.Count = 1) Then
i = Selection.Comments(1).Index
Else
Selection.Collapse wdCollapseEnd
Selection.Expand WdUnits.wdWord
i = Selection.Comments(1).Index
End If

' Call the WordBasic AnnotationEdit
WordBasic.AnnotationEdit

With ActiveDocument.ActiveWindow.View
.SplitSpecial = wdPaneComments
End With

ActiveDocument.Comments(i).Range.Select
Selection.Collapse wdCollapseEnd

End Sub

Thanks and Regards,
Laks
 

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