need help

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

Can someone explain to me how this works:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
 
Action is the custom action from the Actions tab that the user invokes. NewItem is the new item that action creates. Usually, the code uses a Select block to distinguish the actions by name:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "Action1"
MsgBox "User chose Action1"
' do anything you want with NewItem
Case "Action2"
MsgBox "User Chose Action2"
End Select
End FUnction

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Thanks for the info.
-----Original Message-----
Action is the custom action from the Actions tab that the
user invokes. NewItem is the new item that action creates.
Usually, the code uses a Select block to distinguish the
actions by name:
Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "Action1"
MsgBox "User chose Action1"
' do anything you want with NewItem
Case "Action2"
MsgBox "User Chose Action2"
End Select
End FUnction

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers



"Greg Smith" <[email protected]> wrote
in message news:[email protected]...
 
Back
Top