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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changing the flag status



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 9th 08, 03:42 PM posted to microsoft.public.outlook.program_vba
Mark J
external usenet poster
 
Posts: 3
Default Changing the flag status

Hi

I've written some code to automatically save an outlook message from our
Exchange Public Folders to a particular location (whcih works like a dream)
but would like to add some code to mark the flag as complete once the macro
has run.

I can get a coloured flag to appear, but not a completed tick or checkmark.
I've tried this:

Dim objApp As Outlook.Application
Set objApp = CreateObject("Outlook.Application")
Set CurrentItem = objApp.ActiveExplorer.Selection.Item(1)
....
Dim objMail As Outlook.MailItem
Set objMail = CurrentItem
objMail.FlagIcon = olFlagComplete

and also objMail.FlagStatus = olFlagComplete

but to no avail.
Any ideas - I've probably missed somethin blindingly obvious!!

M


 




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
Contacts Flag Status JBCralle Outlook - Using Contacts 9 January 9th 08 05:13 PM
Contact View - Flag Status Beemer Outlook - General Queries 1 October 15th 07 03:10 PM
Apply a Flag Status automatically tog Outlook and VBA 3 July 19th 07 07:28 AM
Moving Flag Status flag in Outlook 2007 Gary C. Outlook - Installation 1 June 19th 07 11:13 PM
Contact Flag Status Guy Outlook and VBA 1 May 13th 06 06:27 AM


All times are GMT +1. The time now is 12:43 AM.


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.