Toolbars showing up at different locations - Template case sensiti

T

Tim

Toolbars showing up at different locations - Template case sensitive

I am using Word 9.0. It appears that the Toolbars that were last displayed
and their locations are stored in the registry at:
Data Key for The location
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data\Toolbars.

The problem is that these settings seem to be saved in a case sensitive
context of the template.
The following steps illustrate my point.

ILLUSTRATION OF PROBLEM
For example, I have a template called "ProcWork.dot".
1. I create a new document based on some other template.
2. Attach it to the template by typing the template name (rather than
navigating to it).
3. Re-arrange some the toolbars from this template.
4. Save and close the document.

I perform these steps typing a template name of "procwork.dot", re-arrange
the toolbars toward the bottom of the screen, save the document as
"lower.doc", and close it.

I perform the same steps typing a template name of "PROCWORK.DOT",
re-arrange the same toolbars toward the top of the screen, save the document
as "upper.doc", and close it.

When I open "lower.doc", the toolbars appear in the lower part of the
screen, I then close "lower.doc".
When I open "upper.doc", the toolbars appear in the upper part of the
screen, I then close "upper.doc".

If I open "lower.doc", the toolbars appear in the lower part of the screen.
If I now open "upper.doc" leaving "lower.doc" open, then the toolbars for
both documents appear in the lower part of the screen.
(It appears to use the settings from the first connection to the template.)

DESIRED FUNCTIONALITY
I have several hundred users with a wide variety of word experience using
this template. This problem with the toolbars is causing confusion because
the toolbars appear, disappear, and move around based upon the case
sensitivity of the way the template was specified when the document was last
saved.

How can I make the toolbars always appear in the location they were in when
the user last viewed a document based on that template (ignoring any
differences in the case sensitivity of the template).

Appreciate all help
 
D

DA

Hi Tim

Set the position with the macro when the template is
invoked or creates a new document. You can set
positioning like this:

Set myBar = CommandBars("<command bar name>")
myBar.Position = msoBarFloating
With myBar
.Left = 300
.Top = 200
End With

Check on the msoBarPosition constants for your other
options on placement.

Hope this helps,
Dennis
 
T

Tim

Dennis,

Thanks for the response.
But I have a wide variety of users and they want to be able to set
the toolbars the way they want them and for the toolbars to stay there.
I'm sure I could write a routine initiated when a document is closed that
identifies the state (visible or invisible), location of each toolbar, and
save
this information in the registry or text file. And write another routine
initiated
when a document is opened that reads the file and positions the toolbars.
But I was hoping there would be an easier way.

Thanks again for your response.

DA said:
Hi Tim

Set the position with the macro when the template is
invoked or creates a new document. You can set
positioning like this:

Set myBar = CommandBars("<command bar name>")
myBar.Position = msoBarFloating
With myBar
.Left = 300
.Top = 200
End With

Check on the msoBarPosition constants for your other
options on placement.

Hope this helps,
Dennis
 

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