Commandbar disapear

L

Lone K.

Hi,

I made a commandbar in at template to activate a form. This works fine, but
you can only run the form once in the template and I would therefore delete
the commandbar when activating the form. This works also fine - BUT now, I
got problems - because next time I activate the template, the commandbar is
gone...

I have tried different codelines like:

'ActiveDocument.CommandBars("Afregning").Visible = False

'CustomizationContext = ActiveDocument
'CommandBars("Afregning").Visible = False

But the Commandbar will not only disapear in the current document.

Do anyone know the code or reason? I cannot use autonew or anything starting
with the template cause the the template is starting up in IE, and that do
not work.

Hope for answers

Lone
 

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