+ Reply to Thread
Results 1 to 6 of 6

Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

  1. #1
    Registered User
    Join Date
    07-07-2016
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    Hi All,

    I have a partially working spreadsheet (i intentionally ensure all features only work in June worksheet for testing purposes) which contains two email notifications. One for my employees reminding them of their due dates to complete their task and the other confirming to my suppliers that we have received their requests.

    The issue I am having is with the latter email. The email is generated (by clicking on the "Send Confirmation Receipt" button found in Email worksheet) and I managed to send it out. However, on the following day; when I generate new email notifications to my other suppliers, the previous ones are regenerated as well.

    It would be greatly appreciative if someone can assist in amending the existing code to read a new column i have created, Column X, where the code would only generate emails when it sees a "YES". The email addresses are inputted manually in Column V. The existing code is the following:

    Please Login or Register  to view this content.
    I believe adding the column with a yes or no should resolve the issue since this is used in my employee reminders and it works perfectly.

    Please find attached a copy of the spreadsheet in question. As noted previously, I am only using June worksheet for testing purposes with the required contents to generate these emails.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 07-07-2016 at 10:27 PM. Reason: code tags

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    Try this one.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    hoofbeat, please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    07-07-2016
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    6StringJazzer - My apologies for the oversight and thanks for editing.

    bakerman2 - Thanks for your assistance. It works perfectly.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    You're welcome.

  6. #6
    Registered User
    Join Date
    07-07-2016
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Edit Existing VBA Code To Send Out Email Confirming Receipt To Suppliers

    Hi All,

    I would greatly appreciate some help again with the previous worksheet which was successfully fixed by bakerman2.

    It works perfectly but just need some minor tweaking. Since I'm not familiar with VBA, i would greatly appreciate the following changes.

    1) to change the below code which currently calculates the networkdays it takes to perform a task to exclude holidays (using Cells N3 & N4 in the worksheets as the holiday range)

    Please Login or Register  to view this content.
    2) Send email reminders from a general mailbox instead of from the individual sender. (ie as though messages was coming from the email address: [email protected])

    and
    3) the ability to insert a logo or image as a signature line.
    Attached Files Attached Files

+ 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. Send read receipt to two recipients.
    By Jeffrey34 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2014, 08:04 AM
  2. VBA code to send email to the people whose email address is in the Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2014, 05:11 AM
  3. 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
  4. Replies: 0
    Last Post: 04-24-2013, 12:49 PM
  5. Code to send Email wont send everytime
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2011, 04:44 PM
  6. Send Email Notification Upon Edit
    By novamustangs in forum Excel General
    Replies: 1
    Last Post: 07-18-2007, 09:51 AM
  7. Generate pdf or word files of a receipt from different suppliers
    By Richard Flame in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2007, 12:50 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