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.
 
Top