Code to set Flag Status to complete on custom form

I

ICT User

I have created a custom form which has a couple of voting buttons. When
the form is sent it sets a flag for follow up. I would like to put
some code into the form so when they hit the voting buttons it
automatically sets the flag to complete. I think i have found what i
need - OlFlagStatus and olFlagComplete=1 but as i am not really a coder
and havent done anything like this for a while i am not sure how i
reference everything to the form . Could someone please help and put
me in the right direction.

Many Thanks
 
S

Sue Mosher [MVP-Outlook]

You didn't say what kind of form this is. It matters.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Since you said this is a message form, it's pretty simple. You need to use the CustomAction event, something like this:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
olFlagComplete=1
Item.FlagStatus = olFlagComplete
NewItem.Display
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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