Closed Thread
Results 1 to 10 of 10

Excel Salary payslip save as pdf and automatically send email using outlook

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2010
    Posts
    12

    Excel Salary payslip save as pdf and automatically send email using outlook

    Good day, I have the following expectations for an excel based payslip:
    1. Print Preview selected Employee payslip [Solved]
    2. Print selected Employee Payslip [Solved]
    3. Save selected/all Employee Payslip as PDF
    4. Email selected/all Employee Payslip via Outlook to respective recipients.

    I can't seem to be able to find a way around solving #3 and #4.
    Appreciate all the help. Kindly see Payslips_Demo.xlsm.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Hi fortknox

    This revised Code will handle Issue #3; I'll look at Issue #4.
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    09-24-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Quote Originally Posted by jaslake View Post
    Hi fortknox

    This revised Code will handle Issue #3; I'll look at Issue #4.
    Please Login or Register  to view this content.
    Thanks, Issue#3 works like a charm, thanks.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Hi fortknox

    This Code in the attached appears to handle Issue #4. The Code tests for the existence of a PDF File for the Selected Employees; if it finds one the Code sends an Email with the PDF File as an attachment. If not found the Code will tell you.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-24-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Quote Originally Posted by jaslake View Post
    Hi fortknox

    This Code in the attached appears to handle Issue #4. The Code tests for the existence of a PDF File for the Selected Employees; if it finds one the Code sends an Email with the PDF File as an attachment. If not found the Code will tell you.
    Please Login or Register  to view this content.
    Boss,
    Thanks a lot, this works like a charm.
    You Rock!!!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    You're welcome, glad I could help. Thanks for the Rep.

  7. #7
    Registered User
    Join Date
    06-28-2020
    Location
    TW
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Hello
    This vba only works for windows ?

    thanks

  8. #8
    Registered User
    Join Date
    04-28-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Thanks.

  9. #9
    Registered User
    Join Date
    11-02-2019
    Location
    india
    MS-Off Ver
    Ms office 2013
    Posts
    9

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Getting error of payslip for hanna oriola does not find

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,845

    Re: Excel Salary payslip save as pdf and automatically send email using outlook

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Requesting VBA code to automatically send email through Outlook from Excel
    By Colton4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2015, 07:15 PM
  2. Need a Macro to send Payslip though outlook
    By sahdevca in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2014, 08:04 AM
  3. Can't send email automatically outlook 2007
    By lopezio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2013, 07:22 AM
  4. Replies: 5
    Last Post: 02-22-2013, 02:00 AM
  5. Save range and send as outlook email
    By hejbeiter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 12:50 PM
  6. [SOLVED] VBA code - automatically open outlook to send email
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:44 AM
  7. Excel to automatically send an email from Outlook when a condition is met
    By Spyke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2011, 04:40 AM

Tags for this Thread

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