Consulting

Results 1 to 3 of 3

Thread: Set category, close and forward an email

  1. #1
    VBAX Mentor OTWarrior's Avatar
    Joined
    Aug 2007
    Location
    England
    Posts
    389
    Location

    Set category, close and forward an email

    Hello

    I currently have a set up of using categories to keep track of my emails, with buttons in outlook to assign a category to the current open email, then close it:

    [VBA]Sub catAwaitingResponse()
    Dim MItem As Object
    Set MItem = ActiveInspector.CurrentItem

    MItem.Categories = "Awaiting Response"
    MItem.Close olSave
    End Sub[/VBA]

    What I would like to do, is to forward this email to someone at the same time.
    BUT, I don't want to auto forward. I just want to simulate the "Forward Button" on the toolbar, creating an email that I can add whatever text to before I send.

    Any ideas?
    -Once my PC stopped working, so I kicked it......Then it started working again

  2. #2
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location
    [VBA]MItem.Forward.Display[/VBA]
    But the mail must be open and not just selected. I tend to use [VBA]ActiveExplorer.Selection.Item(1)[/VBA]but you can't define as object then but rather as Outlook.MailItem .

    Charlize

  3. #3
    VBAX Mentor OTWarrior's Avatar
    Joined
    Aug 2007
    Location
    England
    Posts
    389
    Location
    Works perfectly. Thank you again Charlize
    -Once my PC stopped working, so I kicked it......Then it started working again

Posting Permissions

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