Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Menus and Toolbars / May 2005

Tip: Looking for answers? Try searching our database.

Control Toolbox toolbar won't go away!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil - 12 May 2005 19:47 GMT
I have a template file I'm using with certain docs. Whenever a doc that has
this template file attached is opened, the Control Toolbox toolbar appears.
I close it, but it opens again next time. How can I close it for good with
documents with this template?

Thanks.
Jay Freedman - 13 May 2005 01:36 GMT
>I have a template file I'm using with certain docs. Whenever a doc that has
>this template file attached is opened, the Control Toolbox toolbar appears.
>I close it, but it opens again next time. How can I close it for good with
>documents with this template?
>
>Thanks.

If the document contains one or more controls from the Control
Toolbox, AND you have the macro security level set to High (Tools >
Macro > Security), then that document will always open in Design Mode
with the Toolbox displayed. Which template is attached really has
nothing to do with it.

You can turn the security level down to Medium and click the Enable
button when the macro warning appears, or you can remove the controls
from the document and replace them with something else.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Margaret Aldis - 13 May 2005 11:15 GMT
Hi Jay

My experience is that documents will open in design mode whenever macros are
disabled - so often it really is template related, and doesn't depend on
having controls in the document.

--
Margaret Aldis - Microsoft Word MVP
Signature

Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.word.mvps.org


>>I have a template file I'm using with certain docs. Whenever a doc that
>>has
[quoted text clipped - 19 lines]
> Jay Freedman
> Microsoft Word MVP         FAQ: http://word.mvps.org 
Jay Freedman - 13 May 2005 13:24 GMT
>Hi Jay
>
>My experience is that documents will open in design mode whenever macros are
>disabled - so often it really is template related, and doesn't depend on
>having controls in the document.

Hi Margaret,

Sorry, that isn't what I see at all. I just tried again... set the
security level to Very High... create a new document based on a
macro-containing template that's stored in My Documents (because the
regular Templates folder is trusted, using a template stored there
wouldn't prove anything)... the document did *not* open in design
mode, but the macros are disabled.

However, opening a document that has macros stored in it -- but no
ActiveX controls -- does open in design mode. But that document is
based on Normal.dot, and the macros that live in the template still
work because the template is trusted.

So my (slightly modified) statement is that a document that contains
either ActiveX controls or macros will open in design mode when macros
are disabled. It still doesn't depend on the attached template.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Margaret Aldis - 13 May 2005 13:37 GMT
>>Hi Jay
>>
[quoted text clipped - 25 lines]
> Jay Freedman
> Microsoft Word MVP         FAQ: http://word.mvps.org

Hi Jay

I've just checked again and you are absolutely right - funny, as I never use
Active-OX controls, nor macros in documents, and was certain I'd seen this
behaviour on opening a document with non-trusted template, but it looks like
it must have been on an occasion when I opened the template itself.

--
Margaret Aldis - Microsoft Word MVP
Signature

Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.word.mvps.org

Neil - 13 May 2005 16:50 GMT
Hi, Jay.

> Sorry, that isn't what I see at all. I just tried again... set the
> security level to Very High... create a new document based on a
> macro-containing template that's stored in My Documents (because the
> regular Templates folder is trusted, using a template stored there
> wouldn't prove anything)... the document did *not* open in design
> mode, but the macros are disabled.

That wasn't my experience. When I opened a document based on a template with
a macro, it *did* open in design mode (and the macro is disabled). Security
setting is High (I don't have a "Very High" -- just Low, Medium, and High;
but I'm using Word 2000). The template does not have any controls in it --  
just text and a single macro.

> However, opening a document that has macros stored in it -- but no
> ActiveX controls -- does open in design mode. But that document is
[quoted text clipped - 4 lines]
> either ActiveX controls or macros will open in design mode when macros
> are disabled. It still doesn't depend on the attached template.

I'm a bit confused here because in the first paragraph you wrote that the
document based on a macro-containing template did not open in design mode
when macros were disabled. But here you say it will open in design mode. ?

Neil

> --
> Regards,
> Jay Freedman
> Microsoft Word MVP         FAQ: http://word.mvps.org 
Charles Kenyon - 13 May 2005 18:13 GMT
Do you know if the document _ever_ had macros in it? If so, that setting is
permanent even if the macros are later removed.
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Hi, Jay.
>
[quoted text clipped - 30 lines]
>> Jay Freedman
>> Microsoft Word MVP         FAQ: http://word.mvps.org
Jay Freedman - 14 May 2005 01:31 GMT
>Hi, Jay.
>
[quoted text clipped - 25 lines]
>
>Neil

The distinction is whether the macro is in the attached template or in
the document itself.

Word generally "expects" macros to be stored in templates -- in early
versions, macros couldn't be stored in documents at all. When it finds
macros in documents, it assumes they're malicious code unless you
approve them specifically -- that's the kind of world we live in.
<sigh>

When you set the macro security level to High, you're saying, "Assume
all macros in documents are viruses and prevent them from running --
no exceptions, don't even ask me. Assume the same for macros in
templates except those in a few specific trusted folders."

Opening in design mode is a specific symptom of Word finding (or
thinking it found*) and disabling a macro or an ActiveX control in a
document. If there are none in the document, but there are macros in
its attached template, then the macros are disabled if the template is
not trusted, but design mode doesn't appear.

*As Charles pointed out in a parallel reply, a document that has ever
had a macro stored in it will continue to trigger Word's allergic
response even after the macro is deleted. This can be cured by saving
the document in RTF format and back into Word format.

If you set the macro security level to Medium, you can choose to
disable or enable macros in documents each time you open the document.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
Neil - 16 May 2005 06:44 GMT
OK, thanks for clarifying the difference between the template and document
and storing macros. In the below you wrote:

>>Hi, Jay.
>>
[quoted text clipped - 60 lines]
> Jay Freedman
> Microsoft Word MVP         FAQ: http://word.mvps.org 
Neil - 16 May 2005 07:07 GMT
Please ignore this one. Was sent by mistake.

> OK, thanks for clarifying the difference between the template and document
> and storing macros. In the below you wrote:
[quoted text clipped - 66 lines]
>> Jay Freedman
>> Microsoft Word MVP         FAQ: http://word.mvps.org
Neil - 16 May 2005 07:06 GMT
OK, thanks for clarifying the difference between the template and document
and storing macros. In the below you wrote:

"Opening in design mode is a specific symptom of Word finding (or
thinking it found*) and disabling a macro or an ActiveX control in a
document. If there are none in the document, but there are macros in
its attached template, then the macros are disabled if the template is
not trusted, but design mode doesn't appear."

In my case, the macro is stored in the template and always has been. The
documents have never had any macros stored in them. Yet when I open a
document based on that template, in addition to disabling the macro, the
document is opened in design mode.

I'll note that the documents were originally created using Normal.dot and
then this macro-containing template was attached to them. I don't know if
that makes a difference, but I note it anyway.

Neil

>>Hi, Jay.
>>
[quoted text clipped - 60 lines]
> Jay Freedman
> Microsoft Word MVP         FAQ: http://word.mvps.org 
Jay Freedman - 17 May 2005 14:53 GMT
Hi Neil,

I don't know what to tell you. I've tested that exact scenario, but in Word
2003, and I still see what I described and not what you described.

Have you tried saving the document as RTF and then back to .doc? If the
problem really is that the "has macros" flag in the document is turned on
(leaving aside the question of how it got that way) and not anything to do
with the attached template, then this treatment will make the problem go
away.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

> OK, thanks for clarifying the difference between the template and
> document and storing macros. In the below you wrote:
[quoted text clipped - 83 lines]
>> Jay Freedman
>> Microsoft Word MVP         FAQ: http://word.mvps.org
Neil - 18 May 2005 00:05 GMT
It's not a single document. We have thousands of documents related to a
database application (each document for a particular record of the
database). I created a template for use with the documents (they were all
created based on each user's Normal.dot), and placed it in a global location
on the network (path was not specified under Workgroup Templates).

Each document is opened from its database button (so, for example, if the
user is in record 12345, and they click the Doc button, the button opens
12345.doc in Word using automation).

I modified the database so that it automatically attaches the new template
to a doc when it is opened, or uses the new template when a new doc is
created. All well and good. No problems.

Then one day, some weeks later, I added a macro to the template. All the
users started complaining that they were getting the design mode toolbar pop
up, and it was driving them crazy. Didn't matter which document. Whenever
they opened a document through the database, they got the toolbar. Closed
the toolbar and Word, and then opened another document, and toolbar came
back.

Finally, I removed the macro from the template (actually had to recreate the
template from scratch, since there isn't a way (that I could find) to save a
template file as RTF). As soon as I removed the macro from the template, the
problem went away.

So the problem was definitely with the macro in the template. When it was
installed there, they got the toolbar; when the macro was removed from the
template, the toolbar went away. None of the documents have any problems
now.

Neil

> Hi Neil,
>
[quoted text clipped - 95 lines]
>>> Jay Freedman
>>> Microsoft Word MVP         FAQ: http://word.mvps.org
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.