Solved

How to resend message via VBA

Posted on 2007-12-06
1
344 Views
Last Modified: 2010-05-18
Hi all,

I can retrieve sent messages via VBA and I would like to send them again. Normaly I would click on commandbar ACTION, RESEND, but how to do the same via VBA?

many thanks

V.
0
Comment
Question by:vladobb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 20425921
Sub test1()
Dim myObj As Object
Dim myMail As mailitem

    Set myObj = Application.ActiveInspector.CurrentItem
    If myObj.Class = olMail Then
        Set myMail = myObj
        myMail.Send
    End If
End Sub

OBviously any edits you want to make need to be done before the send is actioned!

Chris
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Changing a few Outlook Options can help keep you organized!
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question