Results 1 to 10 of 10

vba problem copy paste and email

Threaded View

  1. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    now try this updated sheet.

    just open the workbook & press Alt+F11 and goto Module 1 & change the Mail id to whom you want to send at red line

    ub mail_Send()
        Dim OutApp As Object
        Dim OutMail As Object
        
        Set OutApp = CreateObject("Outlook.Application")
        Set OutMail = OutApp.CreateItem(0)
    
        On Error Resume Next
       ' Change the mail address and subject in the macro before you run it.
       Application.DisplayAlerts = False
        With OutMail
            .To = "mail id here"
            .CC = ""
            .BCC = ""
            .Subject = "MAIL TESTING"
            .Body = "HEY ITS WORKING FINE !"
            .Attachments.Add ActiveWorkbook.FullName
            .Display " to"
            ' display the mail.
            .Send
        End With
        On Error GoTo 0
    
        Set OutMail = Nothing
        Set OutApp = Nothing
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy / Paste a Dynamic Range in Email
    By jharris90 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2014, 01:56 PM
  2. [SOLVED] Copy/Paste percentages into an email
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 05:21 PM
  3. [SOLVED] can I copy a column of email addresses, paste into email address?
    By Lizizfree in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2006, 05:05 PM
  4. [SOLVED] Copy/Paste to email
    By Beeel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2005, 10:06 AM
  5. Replies: 1
    Last Post: 01-04-2005, 06: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