qrobur
12-01-2003, 12:11 AM
I have a Word document that is used as a crude label database. I have written a VBA macro [let's call it "label_creator"] that copies a particular label to the cells of a table in a new document that it creates.
As the users of the document are not experts, I want to add a custom commandbar with popup control and button to the "database" document. This is intended to let the users click a simple menu command to create their labels. I have a second VBA macro [let's call that "cb_creator"] that creates the commandbar when the database document is opened. I want to delete this command bar when I close the database document.
The problem I have is that when I create the new document using ["label_creator"] the custom commandbar appears on the menu bar of the new document, and is no longer on the menu bar of the database document. I want to keep the commandbar with the latter and not have it appear in the new document.
Can anyone tell me a way of keeping the custom commandbar with my database document in these circumstances?
TIA
As the users of the document are not experts, I want to add a custom commandbar with popup control and button to the "database" document. This is intended to let the users click a simple menu command to create their labels. I have a second VBA macro [let's call that "cb_creator"] that creates the commandbar when the database document is opened. I want to delete this command bar when I close the database document.
The problem I have is that when I create the new document using ["label_creator"] the custom commandbar appears on the menu bar of the new document, and is no longer on the menu bar of the database document. I want to keep the commandbar with the latter and not have it appear in the new document.
Can anyone tell me a way of keeping the custom commandbar with my database document in these circumstances?
TIA