M
movalgirl
Hi all,
due to some faulty programming my C++ COMAddIn does not delete the
custom toolbar it has created.
I am attempting to write a vbscript which will allow the administrator
to cleanup this toolbar without having to install a macro/ComAddin or
anything of the sort.
Is this possible in vbscript? Can someone point me in the direction of
the OOM objects which are available in vbscript as opposed to VBA?
A small snippet of how I think the removal of the toolbar should work
is posted below.
--------------------------------------------------------------------------------
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
objNamespace.Logon "Outlook", , FALSE, TRUE
Set myOlExp = objOutlook.ActiveExplorer
Set myCmdBars = myOlExp.CommandBars
mycbars.delete("My toolbar")
Wscript.Echo "done"
objOutlook.Quit
due to some faulty programming my C++ COMAddIn does not delete the
custom toolbar it has created.
I am attempting to write a vbscript which will allow the administrator
to cleanup this toolbar without having to install a macro/ComAddin or
anything of the sort.
Is this possible in vbscript? Can someone point me in the direction of
the OOM objects which are available in vbscript as opposed to VBA?
A small snippet of how I think the removal of the toolbar should work
is posted below.
--------------------------------------------------------------------------------
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
objNamespace.Logon "Outlook", , FALSE, TRUE
Set myOlExp = objOutlook.ActiveExplorer
Set myCmdBars = myOlExp.CommandBars
mycbars.delete("My toolbar")
Wscript.Echo "done"
objOutlook.Quit