Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Custom toolbar OrganizerCopy (d) from Template to Document not vis
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. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Custom toolbar OrganizerCopy (d) from Template to Document not vis
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 See also the MVP FAQ: http://word.mvps.org/FAQs/ 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. "behind the times" behind the wrote in message ... 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. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Custom toolbar OrganizerCopy (d) from Template to Document not vis
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 Word MVP web site http://word.mvps.org behind the times wrote: 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Global/Master Template | New Users | |||
SQL Prompt When opening merged documents | Mailmerge | |||
FILLIN Field and Word Template -> Blank document :( | Microsoft Word Help | |||
FILLIN Field and Word Template -> Blank document :( | Mailmerge | |||
Global template: Custom menu is slow? | Microsoft Word Help |