A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Code to set Flag Status to complete on custom form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 17th 06, 04:21 PM posted to microsoft.public.outlook.program_forms
ICT User
external usenet poster
 
Posts: 4
Default Code to set Flag Status to complete on custom form

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

Ads
  #2  
Old March 17th 06, 06:05 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Code to set Flag Status to complete on custom form

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

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"ICT User" wrote in message oups.com...
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

  #3  
Old March 20th 06, 10:17 AM posted to microsoft.public.outlook.program_forms
ICT User
external usenet poster
 
Posts: 4
Default Code to set Flag Status to complete on custom form

Oh yes sorry - it is a message form

Thanks

  #4  
Old March 28th 06, 12:59 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Code to set Flag Status to complete on custom form

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"ICT User" wrote in message oups.com...
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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete Noob Here - Outlook Form - Concept SFC Charlie Cox Outlook - Using Forms 9 March 15th 06 02:44 PM
Can't move "Flag Status" column tom Outlook - General Queries 2 March 15th 06 06:20 AM
Can not move or copy message having "flag complete" Vinayakc Add-ins for Outlook 1 February 23rd 06 04:48 PM
VBA Code to check Task Status [email protected] Outlook and VBA 2 February 3rd 06 07:16 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 04:01 PM


All times are GMT +1. The time now is 01:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.