+ Reply to Thread
Results 1 to 2 of 2

Add a selected mai on the inbox to a new mail as attachmentl

  1. #1
    Registered User
    Join Date
    04-30-2016
    Location
    Tilburg, Holland
    MS-Off Ver
    Windows 7
    Posts
    1

    Add a selected mai on the inbox to a new mail as attachmentl

    Dear Friends

    Would it be possible to help me on below adding a select mail on the inbox to a new mail as attachment (outlook)?

    Thank you very much

    Sub send_Mail()
    Dim outlookOBJ As Object
    Dim mItem As Object
    Set outlookOBJ = CreateObject("Outlook.Application")
    Set mItem = outlookOBJ.CreateItem(olMailItem)
    With mItem
    .To = "zzzz"
    .Subject = "Test Subject"
    .Body = "This is some text in an email"
    zzzzz.Save
    .attachments.Add
    .Send

    End With
    End Sub

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Add a selected mai on the inbox to a new mail as attachmentl

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] vba to pull xls file in inbox outlook mail from multiple recipients saved to target fld
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2016, 02:11 PM
  2. Replies: 1
    Last Post: 12-18-2015, 09:42 AM
  3. Can I use a Hyperlink to send a Workshheet from a selected workbook to a selected E Mail A
    By daviddavid in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 05:14 PM
  4. [SOLVED] Use a Macro or VBA to utilize a command to e-mail selected cells to predetermined e-mail
    By jstn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2013, 10:39 AM
  5. How to e-mail selected row and use e-mail address in a cell to send e-mail from excel
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2010, 02:15 AM
  6. Deleted Mail from InBox
    By hardeep.kanwar in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 11-27-2009, 01:48 AM
  7. [SOLVED] Mail goes to own inbox
    By RCCruiser in forum Excel General
    Replies: 0
    Last Post: 03-16-2005, 09:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1