"Insert Comment" macro--can't get rid of reviewing pane

S

Steph H

I just recently got a new laptop and decided to try Office 2010 while I'm at
it. I have a single, simple macro recorded with a key-combo saved to it that
will insert a comment. I edit documents and spend MANY hours inserting
comments. My macro is simple: Insert Comment. That's it. I just do Alt-W
and voila! The comment is inserted, ready for me to type my text into it. In
Word 2003, it inserts nicely and neatly. However, in trying to create this
same macro in Word 2010, when I actually go to run the macro, it ALWAYS opens
up the reviewing pane at the bottom!! And yet, when I'm recording the darn
thing, it never comes up! So I can't even record a step to close it!!
ARGH!! I have spent hours trying to figure out how to get it to insert the
comment without the pane showing up. My new screen is smaller, and I can't
afford to give up that space to the stupid reviewing pane.

I tried opening up both macros and copying/pasting the text, but there's
only one line: "Selection.Comments.Add Range:=Selection.Range". There's
nothing in there about the pane as far as I can tell. I also used the
organizer found on the developer tab to copy the macros from my old .dot
template to my new .dotm template. STILL puts the reviewing pane in there.

If there is anyone out there who has some insight for me, I would greatly
appreciate it. Thank you so much!
 
J

John Voyer

To my surprise, I solved this problem. I should point out, though, that I had macros that entered specific, pre-selected words or phrases. To insert a "custom" comment, Word has an "insert comment" button that you can add to the quick access toolbar (and which does not open the reviewing pane!).

Here's how I solved my problem with the pre-selected word comments:

Before started recording the macro, I opened the reviewing pane (so that I could close it as part of the recording process). I also selected a word so that the comment would be placed somewhere specific.

Then I started recording the macro (which in this case involved hitting the "insert comment" button, typing a phase, such as "good point").

For the final step of my macro recording, I closed the reviewing pane.

Much to my surprise, this inserted my comment at the selected spot, and then VERY QUICKLY OPENED AND CLOSED the reviewing pane!

I examined the macro code in the Visual Basic editor and noticed that this phrase was the last line before "End Sub":

ActiveWindow.ActivePane.Close

When I copied this into all my macros, it opened and closed the reviewing pane for all of them.

Problem solved!

John Voyer
U of Southern Maine
School of Business



Steph H wrote:

"Insert Comment" macro--can't get rid of reviewing pane
21-Feb-10

I just recently got a new laptop and decided to try Office 2010 while I am a
it. I have a single, simple macro recorded with a key-combo saved to it tha
will insert a comment. I edit documents and spend MANY hours insertin
comments. My macro is simple: Insert Comment. That's it. I just do Alt-
and voila! The comment is inserted, ready for me to type my text into it. I
Word 2003, it inserts nicely and neatly. However, in trying to create thi
same macro in Word 2010, when I actually go to run the macro, it ALWAYS open
up the reviewing pane at the bottom!! And yet, when I am recording the dar
thing, it never comes up! So I cannot even record a step to close it!
ARGH!! I have spent hours trying to figure out how to get it to insert th
comment without the pane showing up. My new screen is smaller, and I canno
afford to give up that space to the stupid reviewing pane

I tried opening up both macros and copying/pasting the text, but there i
only one line: "Selection.Comments.Add Range:=Selection.Range". There i
nothing in there about the pane as far as I can tell. I also used th
organizer found on the developer tab to copy the macros from my old .do
template to my new .dotm template. STILL puts the reviewing pane in there

If there is anyone out there who has some insight for me, I would greatl
appreciate it. Thank you so much!

Previous Posts In This Thread:

"Insert Comment" macro--can't get rid of reviewing pane
I just recently got a new laptop and decided to try Office 2010 while I am a
it. I have a single, simple macro recorded with a key-combo saved to it tha
will insert a comment. I edit documents and spend MANY hours insertin
comments. My macro is simple: Insert Comment. That's it. I just do Alt-
and voila! The comment is inserted, ready for me to type my text into it. I
Word 2003, it inserts nicely and neatly. However, in trying to create thi
same macro in Word 2010, when I actually go to run the macro, it ALWAYS open
up the reviewing pane at the bottom!! And yet, when I am recording the dar
thing, it never comes up! So I cannot even record a step to close it!
ARGH!! I have spent hours trying to figure out how to get it to insert th
comment without the pane showing up. My new screen is smaller, and I canno
afford to give up that space to the stupid reviewing pane

I tried opening up both macros and copying/pasting the text, but there i
only one line: "Selection.Comments.Add Range:=Selection.Range". There i
nothing in there about the pane as far as I can tell. I also used th
organizer found on the developer tab to copy the macros from my old .do
template to my new .dotm template. STILL puts the reviewing pane in there

If there is anyone out there who has some insight for me, I would greatly
appreciate it. Thank you so much!


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Circular Progress Indicator
http://www.eggheadcafe.com/tutorial...a-cc047643fd42/wpf-circular-progress-ind.aspx
 

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