Solved

How to resend message via VBA

Posted on 2007-12-06
1
312 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

810 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