+ Reply to Thread
Results 1 to 11 of 11

VBA code to send mail automatically from outlook

  1. #1
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Post VBA code to send mail automatically from outlook

    Hi excel gurus,

    Kindly anyone help me pls.

    I need to send a mail on a daily basis from outlook at 6.00 pm.
    Containing a shared link to particular mail I'd.

    If we can write a macro for sending the mail automatically would be of very great help as we are missing to send the mail some times.

    Thanks in advance

    Regards,

    Aravind

  2. #2
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VBA code to send mail automatically from outlook

    Attached a sample workbook. Go through the code and update data in relevant cells.
    PS: Use Windows schedulers to run the code at fixed timeline
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Re: VBA code to send mail automatically from outlook

    Hi,

    I tried running the it seems not working. Kindly help there is no error message coming.
    But the mail also not getting triggered .
    And also where do I find the windows scheduler.

    Thanks in advance

    Regards

    Aravind

  4. #4
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VBA code to send mail automatically from outlook

    To execute VBA: attach your workbook with sample data.
    Windows Task: Start->All Programs->Accessories->System Tools->Scheduled Tasks

  5. #5
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Re: VBA code to send mail automatically from outlook

    Hi,

    Thanks for the help.

    Sorry for the inconvinence caused.

    However what should I put in function/location/planned effort/actual effort/ status .

    Do I need to fill all the cells. If left blank will the macro work.

    Thanks in advance.

    Regards,

    Aravind

  6. #6
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Re: VBA code to send mail automatically from outlook

    Hi,

    Thanks for the help.

    Sorry for the inconvinence caused.

    However what should I put in function/location/planned effort/actual effort/ status .

    Do I need to fill all the cells. If left blank will the macro work.

    Thanks in advance.

    Regards,

    Aravind

  7. #7
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VBA code to send mail automatically from outlook

    Try:

    PS: this is sheet which I am using for my reference on daily basis. Please make changes this code to your requirements.

    In Col A: Fill the name of the recipient
    In Col D: Email id of the recipient
    In Col F: CC of the person/s
    In Col I: Mail has to send? or not?. (i.e Let us Consider many rows are there in your sheet, in that, if you want to send mail the put"YES" else put "NO"
    Then,
    Press Alt+F8 and run the macro called "Send Email"

  8. #8
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Re: VBA code to send mail automatically from outlook

    Thanks a lot the macro is working fine.

    But I tried scheduling this in windows but the mail is not getting triggered .

    Kindly help please sorry for the inconvinence .

  9. #9
    Forum Contributor
    Join Date
    12-09-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    171

    Re: VBA code to send mail automatically from outlook

    You need to write the code in Workbook_open event, then only it will trigger automatically.

    Otherwise you need to run every time..
    Like my answer, then click * below

  10. #10
    Registered User
    Join Date
    08-21-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2013
    Posts
    82

    Re: VBA code to send mail automatically from outlook

    Thanks a lot

    Could you please give me the code to trigger the event.

  11. #11
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VBA code to send mail automatically from outlook

    Quote Originally Posted by aravindkm View Post
    Thanks a lot

    Could you please give me the code to trigger the event.
    Please Login or Register  to view this content.
    Copy/paste the above code in Thisworkbook module and set windows scheduled task at a min early(i.e: 17:59:00)

    Change the status to solved if you satisfied with this solution,
    Steps:
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    chinraj
    Last edited by chinraj; 02-28-2014 at 08:18 AM.

+ 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. Help on Excel Macro/VBA Function to assign code to send outlook mail to multiple Receipt's
    By breadwinner in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 06:28 AM
  2. Replies: 0
    Last Post: 04-24-2013, 12:49 PM
  3. Send Mail - Code to test whether Lotus Notes / Outlook is used
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2005, 11:05 AM
  4. How can I use Outlook express to send mail rather than Outlook by VBA code
    By new.microsoft.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-03-2005, 11:05 AM
  5. [SOLVED] How can I use Outlook express to send mail rather than Outlook by VBA code
    By new.microsoft.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2005, 08:05 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