S
StevenBr
In my Outlook add-in, I'm creating a commandbar with one button, as follows:
Set cbrTessOLBar = Inspector.CommandBars.Add("cbTessOL", msoBarTop, False,
True)
Set cbTessOLLogSend = cbrTessOLBar.Controls.Add(msoControlButton, , , ,
True)
The last argument, according to the docs, is Temporary, indicating that the
commandbar and button should be destroyed when the inspector is.
That doesn't occur; as I continually open inspectors, new commandbars are
added each time. Does "Temporary" really work, or do I have to destroy the
commandbar in code?
Thanks.
Set cbrTessOLBar = Inspector.CommandBars.Add("cbTessOL", msoBarTop, False,
True)
Set cbTessOLLogSend = cbrTessOLBar.Controls.Add(msoControlButton, , , ,
True)
The last argument, according to the docs, is Temporary, indicating that the
commandbar and button should be destroyed when the inspector is.
That doesn't occur; as I continually open inspectors, new commandbars are
added each time. Does "Temporary" really work, or do I have to destroy the
commandbar in code?
Thanks.