Results 1 to 2 of 2

Thread: Setting Flag in Outlook

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455

    Post

    Hello Vb users and Ishamel,

    In Outlook 97 is a flag button for setting a kind of note:

    Call,
    Do not forward,
    Follow up,
    For your information,

    etc etc

    How can I set the flag to for example "For your information"?


    Source:
    Dim objOutlook As New Outlook.Application
    Dim objOutlookMsg As Outlook.MailItem
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    With objOutlookMsg
    .To = "q@q"
    . ???? set flag property ????
    End With


    Nice greetings,

    Michelle.

  2. #2
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    I'm working with Outlook 98, but I think this is what you are after.

    You are wanting to set the FlagRequest property before you send a MailItem.

    Code:
    Dim objOutlook As New Outlook.Application 
    
    Dim objOutlookMsg As Outlook.MailItem 
    
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem) 
    
    With objOutlookMsg 
        .To = "q@q" 
    
        'Set the FlagRequest property as appropriate.
        .FlagRequest = "Call"
        'or
        .FlagRequest = "Do Not Forward"
        'or
        .FlagRequest = "Follow Up"  'This can also be set through FlagStatus property.
        'or
        .FlagRequest = "For Your Information"
    End With

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width