Temporary commandbar not getting deleted

L

Lars Roland

Hi I have created an commandbar with the following properties:

Set cbrNewToolbar = golApp.ActiveExplorer.CommandBars.Add _
(Name:="SoftReport", Position:=msoBarTop, Temporary:=True)

I have this code in a function that gets called from OnConnection (I use
the code from ItemsCB). The problem is that the commandbar does not seam
to be temporary, a new one gets added everytime outlook is started, and
the old one is not deleted.

How can I force the commandbar to get unloaded everytime outlook stops
and then created again when outlook is started.




Regards.
 

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