Function Reference

_OL_BarShortcutDelete

Deletes a Shortcut from the OutlookBar.

#Include <OutlookEX_GUI.au3>
_OL_BarShortcutDelete($oOL, $vGroupname, $vShortcutname)

 

Parameters

$oOL Outlook object returned by a preceding call to _OL_Open()
$vGroupname Name or 1-based index value of the group from where the shortcut will be deleted
$vShortcutname Name or 1-based index value of the shortcut to be deleted

 

Return Value

Success: 1
Failure: Returns 0 and sets @error:
    1 - $vShortcutname is empty
    2 - $vGroupname is empty
    3 - Error accessing the specified group. For details please see @extended
    4 - Error removing the specified Shortcut. For details please see @extended

 

Remarks

Deleting a shortcut by name isn't possible in Outlook 2002

 

Related