need help

G

Greg Smith

Can someone explain to me how this works:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
 
S

Sue Mosher [MVP]

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
 
G

Greg Smith

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top