atw: Re: Word Control Toolbox toolbars ... (Was: Word Template Help)

  • From: Rhonda Bracey <rhonda.bracey@xxxxxxxxxxxxxxxx>
  • To: "austechwriter@xxxxxxxxxxxxx" <austechwriter@xxxxxxxxxxxxx>
  • Date: Mon, 15 Aug 2011 16:38:17 +0800

Neat tip, Neil!

Did you try this macro too? 
http://word.tips.net/T001596_Suppressing_the_Control_Toolbox_Toolbar.html (I 
wrote about this macro in a blog post back in 2008 
[http://cybertext.wordpress.com/2008/10/29/word-2003-controlbox-toolbar-wont-go-away/]
 but have never tried it -- I like your solution better as it's quicker, 
easier, and easier to remember!)

Rhonda

Rhonda Bracey
rhonda.bracey@xxxxxxxxxxxxxxxx
http://www.cybertext.com.au<http://www.cybertext.com.au/>
CyberText Newsletter/blog: 
http://cybertext.wordpress.com<http://cybertext.wordpress.com/>
Author-it Certified Consultant



________________________________
From: austechwriter-bounce@xxxxxxxxxxxxx 
[mailto:austechwriter-bounce@xxxxxxxxxxxxx] On Behalf Of Neil Maloney
Sent: Monday, 15 August 2011 3:14 PM
To: austechwriter@xxxxxxxxxxxxx
Subject: atw: Word Control Toolbox toolbars ... (Was: Word Template Help)

Back in May, there was a Word Template Help thread started by Ken Fredric, who 
had the Microsoft Word and VBA Control Toolbox / Design Mode toolbars 
displaying in a document and they wouldn't go away. Very annoying, it has 
happened to me in the past and, from the thread, to others as well.

While Ken was able to solve his problem, I have just had this happen with one 
of my documents, and have more information about why it happens, which may be 
useful to others when and if it occurs.

Some knowledge of the VBA Editor is needed for the following to make sense, but 
if you ever need to get rid of these toolbars and aren't familiar with the 
Editor (including how to get into it), send me a mail or post to the list.

Attempting to turn off the toolbars, including using macro code to do this, 
accomplished nothing. I then thought of looking at the VBA structure of the 
document, and found that a "NewMacros" module was included as part of the 
document structure - don't ask me how I managed to do that, I have no idea. 
("NewMacros" is the default VBA Editor name for a new code module.)

So the tree diagram for the document (not the underlying template) in the 
Project Explorer window was:

Project [Document Name]
- Microsoft Word Objects
   ... This Document
- Modules
   ... NewMacros
- References
   ... Reference to [Underlying Document Template Name]

Deleting the "NewMacros" module stopped the Control Toolbox / Design Mode 
toolbars displaying each time the document opened.

I then created a test document, added a "New Macro" module to the document's 
VBA structure, and Bingo, the toolbars displayed when I saved, closed then 
re-opened the document. There's no difference whether the module has code in it 
or not. Deleting the module from the test document stopped the toolbars 
displaying.

So it appears that the solution to these toolbars appearing is to delete the 
New Macros module, simple as that, one easy step.

Cheers,
Neil.

************************************************** To view the austechwriter 
archives, go to www.freelists.org/archives/austechwriter To unsubscribe, send a 
message to austechwriter-request@xxxxxxxxxxxxx with "unsubscribe" in the 
Subject field (without quotes). To manage your subscription (e.g., set and 
unset DIGEST and VACATION modes) go to www.freelists.org/list/austechwriter To 
contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx 
**************************************************

Other related posts: