+ Reply to Thread
Results 1 to 4 of 4

Mail sending macro

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Mail sending macro

    Hi All,

    I have a VB code to send the email. But I want to modify this code like. I have a list of email address in excel one below. Now I required the code to be modified like to fetch each mail address one by one and send it. Please find the below code.

    Sub Send_Email_Using_Keys()
    Dim Mail_Object As String
    Dim Email_Subject, Email_Send_To, Email_Cc, Email_Bcc, Email_Body As String
    Email_Subject = "Trying to send email using Keys"
    Email_Send_To = "[email protected]"
    Email_Cc = "[email protected]"
    Email_Bcc = "[email protected]"
    Email_Body = "Congratulations!!!! You have successfully sent an e-mail using Keys !!!!"
    Mail_Object = "mailto:" & Email_Send_To & "?subject=" & Email_Subject & "&body=" & Email_Body & "&cc=" & Email_Cc & "&bcc=" & Email_Bcc
    On Error GoTo debugs
    ShellExecute 0&, vbNullString, Mail_Object, vbNullString, vbNullString, vbNormalFocus
    Application.Wait (Now + TimeValue("0:00:03"))
    Application.SendKeys "%s"
    debugs:
    If Err.Description <> "" Then MsgBox Err.Description
    End Sub

  2. #2
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Mail sending macro

    Please find the attachment for reference.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Mail sending macro

    Any Solutions ??
    Last edited by sathishkm; 01-17-2014 at 11:39 AM.

  4. #4
    Forum Contributor
    Join Date
    07-17-2012
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    461

    Re: Mail sending macro

    I need to be modified in key code

+ 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. Macro for Sending Information Mail.
    By shukla_raj23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2013, 02:10 AM
  2. Mail sending through macro
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2013, 11:46 PM
  3. Macro for sending Outlook mail - Need help
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2013, 06:22 AM
  4. Replies: 1
    Last Post: 12-28-2012, 03:46 AM
  5. Macro For Sending Mail with Attachemnt
    By manian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2011, 01:10 AM

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