VBA Code to Get PDF of Salary Slip and Send it through Email

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 91

  • @doobiegirl09
    @doobiegirl09 3 роки тому

    Super thank you sir you do not know how much you made my work easier from making payslip manually for two days after payroll to one day only thank you never stop doing such videos very simple and concrete explanation

  • @sorinpetcu7503
    @sorinpetcu7503 Рік тому +1

    Great vb code. I have saved a lot of time. 😀 Thank you

  • @AbChanAeri
    @AbChanAeri 9 місяців тому

    Really helpful tutorial. I subscribed!

  • @thres34
    @thres34 7 років тому

    Big thank you sir, your video made my task much easier.

  • @miki_5914
    @miki_5914 5 місяців тому

    sir, when i test the program there is an error massage Run Time Error '438': Object doesn't Support this property or method (Attachment Add). on reference I use outlook 14.0 object library.
    is it only supported by microsoft outlook 16.0 object library?

  • @jennyyap3839
    @jennyyap3839 3 роки тому

    I have a problem on this. When i click F8 "Sheet1.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\" & Filename". I'm encountering an error that says " Document not saved. The document may be open, or an error may have been encountered when saving"

  • @ghadeersaad8810
    @ghadeersaad8810 11 місяців тому +1

    How to send it by WhatsApp??

  • @nyamdulamnyamjav77
    @nyamdulamnyamjav77 6 років тому +1

    Thank you very much for the video, Can use Gmail instead of outlook?

  • @nhatlinhnguyen8823
    @nhatlinhnguyen8823 3 роки тому

    Thanks for such a helpful tutorial, but do you know how to creat a password for each attachment?

  • @manojkumarpatel1131
    @manojkumarpatel1131 3 роки тому

    Ek no. Bro thank you so much❤

  • @mamah88
    @mamah88 6 років тому

    hi. Our company does not use the outlook email client but use lotus notes email client instead. Will it be possible to do this with lotus notes also? Your reply will be very much appreciated.

  • @homrajshrestha3338
    @homrajshrestha3338 2 роки тому

    Very helpful, how to add automatic password to the pdf file of every payslip

  • @mahmudshopan6004
    @mahmudshopan6004 4 роки тому

    if someone's Traveling Allowance is ZERO then i want to his whole RAW would be deleted. is it possible ? I don't want to show him/her if he/she don't get that allowance.

  • @rangaswamys
    @rangaswamys 5 років тому

    Thank you very much for the video, it is really helpful. Can you pleas help me to deal with the case where the employees have left and there is no continuous employee ids?

  • @DavidAntwiBoasiako
    @DavidAntwiBoasiako 3 роки тому

    Thank you very much once again.

  • @karthikkv9735
    @karthikkv9735 4 роки тому

    Hi Sir, how to remove blank fields in the mail merge ? For example: Employee 'A' has Conveyance of Rs. 2K ans it shld reflect in the payslips. But employee 'B' doesn't have conveyance and the field should not reflect in the payslip. How to do that in the Excel Word Mail merge ?

  • @oudomang5613
    @oudomang5613 6 років тому

    Really appreciated, such a helpful tool, if possible, I would like to know how to design more attractive body email.

  • @slamatale5480
    @slamatale5480 7 років тому

    Great work,

  • @mohamedsulfiker.m.y9914
    @mohamedsulfiker.m.y9914 4 роки тому

    Thankyou sir for this lesson

  • @abdullahquhtani4247
    @abdullahquhtani4247 6 років тому

    Great. Can you do some modifications on this code to match my needs?!
    I will pay for those modifications.
    Kindly reply if you are interested.
    Thank you.

    • @12thAnalytics
      @12thAnalytics  6 років тому

      Hi Abdullah! Thanks for your consideration. Yes, I would love to work on that. Please respond at 12thAnalytics@gmail.com

    • @AbdullaKhizamworld
      @AbdullaKhizamworld 5 років тому

      @@12thAnalyticshey could you please share me you correct email as I haved the following mail but never responded. I have been trying to know small modification as to send Excel file not PDF. please reply

  • @jayshrimishra3350
    @jayshrimishra3350 7 років тому +1

    Very nice macro,
    Dim filename as string to be added

    • @narayanareddygade3451
      @narayanareddygade3451 6 років тому

      Hi can you please send this macro working for this VBA creation, please send me the working to my email id narayana142712@gmail.com.Please, please

  • @TheRajKusum
    @TheRajKusum 5 років тому

    very helpful. thank you.

  • @asadulislamasad4985
    @asadulislamasad4985 2 роки тому

    Thanks sir ji

  • @corisehealthcare7956
    @corisehealthcare7956 6 років тому +1

    getting Runtime error '5'
    Sheet2.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\" & Filename
    please help
    m trying to create automated salary slip of my office

    • @punyashlokahilyadeviholkar5019
      @punyashlokahilyadeviholkar5019 4 роки тому

      I have also same problem sir. Have you got solution ?

    • @jennyyap3839
      @jennyyap3839 3 роки тому

      I've also encountered this problem. It says " Document not saved. The document may be open, or an error nay have been encountered when saving". Can you help me with this?

  • @ssconsult3791
    @ssconsult3791 4 роки тому

    I have error during this line Set Omail = Oapp.CreateItem(0) what is solution

  • @globalfoundry2912
    @globalfoundry2912 7 років тому +1

    giving an error Run-time error '5' Invalid procedure call or argument. at export as fixed format row ???

  • @AbdullaKhizamworld
    @AbdullaKhizamworld 5 років тому

    Thanks for this. Could you explain me if I wanna send xls file instead of PDF.

    • @ashrafalhussain5093
      @ashrafalhussain5093 5 років тому

      Hi if you aware please share with us

    • @AbdullaKhizamworld
      @AbdullaKhizamworld 5 років тому

      @@ashrafalhussain5093 still unable to figure it out. even learning to get it but hope someone help me out soon.

  • @raghuram45
    @raghuram45 6 років тому

    Hi If we want to give the file name as following payslip month Ex: Jan 2017 or Dec 2017, what we have to do. please help.

  • @priyanthagamini3860
    @priyanthagamini3860 2 роки тому

    Sir can you please explain me how to apply password for each salary slip in VBA to pdf file

  • @sumit_singh684
    @sumit_singh684 5 років тому

    How can I run these macro on ms office 2007 as I it is not working there?

  • @MrKisspie
    @MrKisspie 6 років тому

    Is there a way to loop without pressing f8?

  • @imranashraf2530
    @imranashraf2530 7 років тому

    help plz accutly i have multi path like 5 country names folders so each invoice save according to country folder as i have done
    'for PDF file save
    If Range("F26").Value = "Italy" Then
    Sheet1.Range("B3:K60").ExportAsFixedFormat xlTypePDF, Filename:= _
    "C:\Italy\" & Sheet1.Range("J15").Value, OpenAfterPublish:=True
    End If
    like above 5 times repeat the codes but my problem is how can i attached patch as attachment in outlook because i have 5 folders path .i want the path to pic the file auto from there own country folder .many thanks

    • @12thAnalytics
      @12thAnalytics  7 років тому

      Hi Imran sorry for late reply. Is your issue still exist. I will share the solution, if you have the issue.

    • @imranashraf2530
      @imranashraf2530 7 років тому

      yes please share

  • @jennyyap3839
    @jennyyap3839 3 роки тому

    How about if we use Gmail instead of Outlook?

  • @danielkwesiyanney4852
    @danielkwesiyanney4852 6 років тому

    please can you show me me from the beginning how you came up with the salary slip .thank you

  • @gganaggene6906
    @gganaggene6906 7 років тому

    Can I escape pdf creation and email sending to the users from the list that don’t have an email address? If so what function will be used?

    • @12thAnalytics
      @12thAnalytics  7 років тому +1

      Hi Gana, please use below code to skip creating emails for employees having no email address.
      Sub PrintSalarySlips()
      Dim Oapp As Outlook.Application
      Dim Omail As Object
      a = 1
      Do While a

    • @TanmoyDaw
      @TanmoyDaw 6 років тому

      Twelfth Analytics Sir, PDF generation function is not working its Run Time Error Invalid Procedure cell or argument.!!
      Kindly advice??

  • @Nextwhatguru
    @Nextwhatguru 6 років тому

    Excellent micro, i had the same for salary slips but unfortunately getting error at .Attachments.Add (ThisWorkbook.Path & "\" & Filename) Error Code: 2147024894 (80070002) Cannot find this file. Verify the path and file name are correct. So what's the solution for this.

    • @Nextwhatguru
      @Nextwhatguru 6 років тому

      and its working well without attachment.

  • @hassanjatta4257
    @hassanjatta4257 3 роки тому

    Awesome tutorial. Please share the code.

  • @amazon5665
    @amazon5665 8 місяців тому

    highly appreciated if u could share vba code here

  • @lamphokeopanya9831
    @lamphokeopanya9831 5 років тому

    Thanks man

  • @markraveneilmartinez305
    @markraveneilmartinez305 3 роки тому

    Hi user defined not defined error how can I solve this thanks

  • @cpkanojiya
    @cpkanojiya 3 роки тому

    Please share this excel file. This is very useful and powerfull.

  • @slamatale5480
    @slamatale5480 7 років тому

    How to delete exported .pdf files automatically after sending all email?

  • @vv9730
    @vv9730 2 роки тому

    how to use gmail instead of outlook..????

  • @manasimalekar2293
    @manasimalekar2293 5 років тому

    If salary head not same to everyone how to generate payslip

  • @9901028711
    @9901028711 4 роки тому

    Kindly send the VBA spreadsheet I would be great to learn the VBA Code via Excel spreadsheet.

  • @sreejondey1917
    @sreejondey1917 5 років тому

    Having run time error 1004
    Pls fix this i am using ms office 2010

  • @talalbalexco7172
    @talalbalexco7172 6 років тому

    Dear is there any way to ass a password protection to each PDF

    • @TimKanya
      @TimKanya 6 років тому

      I would also like to know how to generate this.

  • @septaputra9315
    @septaputra9315 2 роки тому

    Bagaimana supaya pdf nya berpassword ? Ada kode vba nya apa tidak ya ?

  • @sharmajisuperhit
    @sharmajisuperhit 2 роки тому

    Could you please share VBA code text?

  • @SanviPatil2019
    @SanviPatil2019 3 роки тому

    Plz.upload this payroll excel vba file.. for download

  • @hradmin8805
    @hradmin8805 4 роки тому

    how do VBA Code to Get PDF of Salary Slip and Send it through whatapp

  • @karthikswaminathan1124
    @karthikswaminathan1124 7 років тому

    Good work. How do I contact you ?

    • @12thAnalytics
      @12thAnalytics  7 років тому

      Hi! Thanks. Sorry for late reply. You can contact me at 12thAnalytics@gmail.com

  • @sivabharath9478
    @sivabharath9478 5 років тому

    Error 438, how to overcome it

  • @narayanareddygade3451
    @narayanareddygade3451 6 років тому

    Hi sir can you please send me this excel me....it is the great to help to my future

  • @soohailakhtar
    @soohailakhtar 6 років тому

    Dear sir , I have a question I have a Sheet with 3 columns
    Column A =EMPLOYEE ID,i.e 10000-1
    Column B=PAYMENT CODES,(101,102,103,304,305,306)
    column c= Amount i.e (100000,12000,1000,500,20000,3000)
    Slip sheet and during printing slip programm print Basic Pay (read 101 as Basic pay and other codes)
    EARNING SIDE i.e (101,102,103) 101 = BASIC PAY, 102=OTHER INC AND 103=PETROL,
    DEDUCTION SIDE i.e (304,305,306) 304=tax, 305=loan,and 306=EOBI ,
    Earnings Amount Deductions Amount
    Basic Pay 100000 Tax 500
    Other Income 12000 Loan 20000
    Petrol 1000 EOBI 3000
    Sub Total 113000 23500
    Net Pay 89500
    If a employee does not have a earning code for example (Petro=306) than its skip and dont show during printing slip and do not show in slip and than print this slip
    do you have such type of vba code.

  • @appu331
    @appu331 5 років тому

    Video is stuckk