+ Reply to Thread
Results 1 to 3 of 3

auto send emails using vba

  1. #1
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    auto send emails using vba

    Hi,


    I wrote VBA code to send individual emails automatically. my code intention is , send every mail with individual attachment ('F' column) as well as attach all repeated attachments ('G' column) (these attachments is for all candidates). if there is no invidual attachment then mail should go with repeated attachments. i think code is perfect. but while running the code, i'm getting error (path not found) in "IF" condition. Pls help.


    regards
    shiva
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: auto send emails using vba

    Which IF block?

    Does the code process at all or does it fail immediately.
    And stating the obvious but are you certain the path\filname does exist.
    When the code debugs what's the value of .Cells(i,6) ?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    Re: auto send emails using vba

    HI,

    1) code fails immediately.
    2) My path exist on my desktop.
    3) cells(i,6) contains file path.

    i attached sample file. pls go through it.

    regards
    shiva

+ 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. Auto send emails base on cell being within 30 or 90 days excel.
    By hooper12345 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2016, 09:56 AM
  2. Excel vba to auto-send customer emails (duplicate emails issue)
    By nadz84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2015, 10:08 AM
  3. Need to auto send one of three emails based on three conditions
    By BOD117 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2015, 02:52 PM
  4. how to auto send multiple emails from outlook 2007
    By Jagdish Sharma in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 07-15-2013, 04:15 AM
  5. Auto Send Emails Based on Due Date
    By Nuclearman83 in forum Excel General
    Replies: 5
    Last Post: 03-23-2012, 02:54 PM
  6. Auto Send eMails From Excel Using My Menu
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2008, 02:19 PM
  7. Send Mail Merge Auto-Emails based on date
    By Phillycheese5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2005, 11:40 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