AutoNew Different in 2003

T

Traveling

Has anyone else noticed that some code in an AutoNew macro for Word 2003 does not run correctly

For the past several versions of Word, I have been using the following code to arrange custom toolbars at the top of the window

With CommandBars("Script Shortcuts"
.Visible = Tru
.position = msoBarTo
.RowIndex = msoBarRowLas
.Left =
End Wit

With Word 2003, the toolbars are not arranged properly by the AutoNew macro. Although once the new document is created, I can run this code again and the custom toolbars line up just right

What's up with this? How can I get my custom toolbars to arrange themselves properly again when opening a new document

Any help would be appreciated.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VHJhdmVsaW5n?=,

Without any idea about what's behaving differently it's impossible to guess. If
pushed, I'd say that AutoNew may be executing at a different point in time,
especially if you're also starting WORD at the same time and Addins are
loading.
Has anyone else noticed that some code in an AutoNew macro for Word 2003 does not run correctly?

For the past several versions of Word, I have been using the following code
to arrange custom toolbars at the top of the window:
With CommandBars("Script Shortcuts")
.Visible = True
.position = msoBarTop
.RowIndex = msoBarRowLast
.Left = 0
End With

With Word 2003, the toolbars are not arranged properly by the AutoNew macro.
Although once the new document is created, I can run this code again and the
custom toolbars line up just right.
What's up with this? How can I get my custom toolbars to arrange themselves
properly again when opening a new document?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

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

Howard Kaikow

Try modifying the macro to wait for the doc to actually be opened before it
modifies the toolbar positions.

--
http://www.standards.com/; See Howard Kaikow's web site.
Traveling said:
Has anyone else noticed that some code in an AutoNew macro for Word 2003 does not run correctly?

For the past several versions of Word, I have been using the following
code to arrange custom toolbars at the top of the window:
With CommandBars("Script Shortcuts")
.Visible = True
.position = msoBarTop
.RowIndex = msoBarRowLast
.Left = 0
End With

With Word 2003, the toolbars are not arranged properly by the AutoNew
macro. Although once the new document is created, I can run this code again
and the custom toolbars line up just right.
What's up with this? How can I get my custom toolbars to arrange
themselves properly again when opening a new document?
 

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