+ Reply to Thread
Results 1 to 16 of 16

Generate payslips from the data given

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Generate payslips from the data given

    Its a difficult task for me to generate payslips for each employee. Is there any macro which can help me out. Attaching the workbook .
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,871

    Re: Generate payslips from the data given

    On sheet2 of your example, why don't you for our information and avoid any guessing, indicate the column that the data comes from on sheet1. In this manner, it can then be automated with the exact information you require. Help us to help you.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    In addition to what Alan is asking for there's some other considerations. What do you want each payslip(tab) to be named, keeping in mind there's a 31 character limit in the name.

    Another issue is if you are keeping the information in sheet1 for every pay period you will need a column, perhaps labeled payslip, that could be flagged(yes/no) for only those line items for which you want a payslip generated.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    Hi thank you for the prompt reply
    i have updated the file
    it would be great if you could even tell how your going to use a macro
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    Quote Originally Posted by skywriter View Post
    In addition to what Alan is asking for there's some other considerations. What do you want each payslip(tab) to be named, keeping in mind there's a 31 character limit in the name.

    Another issue is if you are keeping the information in sheet1 for every pay period you will need a column, perhaps labeled payslip, that could be flagged(yes/no) for only those line items for which you want a payslip generated.
    i want the tab to be the name of the employee

    i am looking for generating payslip for all the employees
    Last edited by sebastiand95; 08-24-2015 at 02:39 PM.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    i want the tab to be the name of the employee
    So then next time you generate payslips you are going to delete all the previous payslips?

    i am looking for generating payslip for all the employees
    So the sheet1 that you want to generate the payslips from will not have any data from previous pay periods?

    Make sure you respond to Alan's post, #2.
    Last edited by skywriter; 08-24-2015 at 02:50 PM.

  7. #7
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    yes, the next time i generate payslips it will be for the next month

    no, the sheet1 will not have any data from previous pay periods.

  8. #8
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    please check the updated file .

  9. #9
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    Quote Originally Posted by sebastiand95 View Post
    Hi thank you for the prompt reply
    i have updated the file
    it would be great if you could even tell how your going to use a macro
    For every employee on sheet1 the code will first make a copy of sheet2 to use as a template and name the copy with the employee name per your instructions. Then the appropriate information from sheet1 will be pulled into the new payslip and the process repeated until the last employee. Any required formulas should just be present in the blank payslip sheet, they should not reference sheet1 but just other cells on the payslip.

  10. #10
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    Check this for accuracy and let me know if you need any changes or fixes.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    Thanks a lot sir.This is perfect.If you dont mind could you explain the macro you have used. Next time i would want to do it by myself

  12. #12
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    It takes information from your sheet1 and puts it into sheet2. It uses the name of the employees to name their sheets as you requested. The reason Alan asked about what you wanted in which cell is because you have much more information on sheet1 than you are wanting to put on sheet2.

    It's simply a matter of copying your sheet2, naming it with the name of the person in the row we are currently concern with and setting the values on the new sheet according to your preferences from sheet1.

    Thanks for the rep. points.

    Please click the Thread Tools drop down box above your first post and choose solved.
    Last edited by skywriter; 08-24-2015 at 11:00 PM.

  13. #13
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    thank you for the information. I am actualy learning vba to code macros. If it is not a problem could you explain the codes you have written.

  14. #14
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    Here you go.

    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    08-24-2015
    Location
    Hyderabad, India
    MS-Off Ver
    MS 365
    Posts
    27

    Re: Generate payslips from the data given

    Thanks a lot.
    Sir any code to convert each sheet into a pdf?
    Last edited by sebastiand95; 08-25-2015 at 03:00 AM.

  16. #16
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Generate payslips from the data given

    Quote Originally Posted by sebastiand95 View Post
    Thanks a lot.
    Sir any code to convert each sheet into a pdf?
    That's different than your original request.
    Please start a new thread and I'm sure someone will be glad to help.

+ 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. TRying to create numerous payslips from a data sheet
    By tina cooper in forum Excel General
    Replies: 1
    Last Post: 04-29-2015, 06:49 AM
  2. Trying to create payslips automatically from a a data sheet
    By tina cooper in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-29-2015, 05:50 AM
  3. [SOLVED] Payslips on same sheets
    By srini_tbcl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2014, 06:24 AM
  4. Save payslips as pdf
    By crychnun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2012, 01:40 PM
  5. [SOLVED] Generate payslips of employee on a list
    By oluwafog in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 04-17-2012, 11:16 PM
  6. Creating payslips
    By si_ako in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2007, 01:32 AM
  7. generate a random number and use if function to generate new data
    By Dogdoc1142 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2006, 10:50 PM

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