Custom toolbar OrganizerCopy (d) from Template to Document not vis

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am converting a word macro that worked with word97 to 2003.

The macro creates a new document from a custom template. The template
contains a custom toolbar. In 97 when the toolbar was copied via
OrganizerCopy to the new document, it defaulted as visible. In 2003, it is
defaulting as not visible.

Word Help indicate to do the following:
With CommandBars("Custom ToolBar Name")
.Visible = True
.Position = msoBarTop
End With

However, when I do I get a message that the tool bar is not an OLE object
and the visible property is not available.
-2147467259 This property is only available if the document is an OLE Object.
 
If you have the toolbar in the attached template, you don't need to copy it,
just make it visible.

The commands work for me for making toolbars visible. I would suggest
posting your entire code in one of the word.vba newsgroups along with an
explanation of what it is you are trying to accomplish.
--
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


--------- --------- --------- --------- --------- ---------
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.
 
I take it you have substituted the toolbar's real name for "Custom ToolBar
Name" ?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top