multiple documents one attached template

B

bye

Hello,
I have a strange problem. When I work simultaniously with two documents
based on the same attached template then something strange happens. If I
press a selfmade commandbar button in document 1 then its made invisible by
vba code, so far so good. When I go to the second document then that button
is invisible too. I want to press this button too in this document. Is there
a solutions for this. I tried: customizationContext= activedocument.attached
template after the set obutton statement but that did't work.
Thanks
 
K

Klaus Linke

Have you tried setting the CustomizationContext=ActiveDocument before making the button invisible?
Think that should work... while modifying the attached template probably always will apply to all documents attached to that template.

Regards,
Klaus
 

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