+ Reply to Thread
Results 1 to 7 of 7

Need Help with Printing Payslips using Macros In excel 2007

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    4

    Need Help with Printing Payslips using Macros In excel 2007

    I have a excel file wherein a Sheet1, which contains data related to employees payroll.In another sheet 2 (Pay Slip) the payslip is available. I want the details in the payslip to be filled with the details mentioned in Sheet1 and want it to be printed individually according to the serial numbers. Can I get a Function Code which will print payslips for all employees individually with the details required in the payslip.

    I attached here a sample copy of the excel data. The sheet two is the formatted payslip.

    Kindly help!

    Shafraz Abdulla
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Need Help with Printing Payslips using Macros In excel 2007

    I have made some changes and you can do like this.
    Attached Files Attached Files
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    4

    Re: Need Help with Printing Payslips using Macros In excel 2007

    thank You Kamboj Can you explain me how to get the rest of the details using VLOOKUP

  4. #4
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Need Help with Printing Payslips using Macros In excel 2007

    =vlookup("what you want to search", "your data", "which coloum number should be display","0 for exact")
    in your sheet
    =VLOOKUP(D2,Sheet1!$B$8:$AF$12,4,0) - your search value is D2, your data will be same in all vlookup formula, 4 mean you want to put value of 4th coloum from your data starting point.

  5. #5
    Registered User
    Join Date
    01-04-2016
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    4

    Re: Need Help with Printing Payslips using Macros In excel 2007

    thanks a lot .. i understood the logic ... i wanted to know the logic that's why i told u to explain. ur explanation was awesome.

  6. #6
    Registered User
    Join Date
    01-04-2016
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    4

    Re: Need Help with Printing Payslips using Macros In excel 2007

    Dear Sir,

    I am still having problems with this document, I have been trying to do it by my self and trying to find solutions but since i am new to this side of excel (using high end functions and Macros) I am finding it hard to grasp.

    the drop down box which u have done to show the details of employees in the payslip form is not giving me the details any more since i had added that work sheet in to my main document and tried to follow the steps u had given me. but i was not successful. the again i went through help and used data validation but it is not allowing me choose the selection i want because the selection is not in the same worksheet.

    and i want to print all the work sheet separately and the people individually.. please help me with this problem and explain the way you did it to me as well so that i can understand.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Need Help with Printing Payslips using Macros In excel 2007

    In your file you changed the link so attached file not getting sheet1. you can use sheet name as ='8789'!B8:B12 for data validation.
    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. How to automate payslips from excel based payroll
    By Ibrahim Jinadu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2015, 04:25 PM
  2. Replies: 16
    Last Post: 12-29-2014, 01:19 AM
  3. Replies: 1
    Last Post: 06-11-2014, 09:23 AM
  4. Excel 2007 Printing
    By Marti2013 in forum Excel General
    Replies: 1
    Last Post: 04-02-2013, 05:29 PM
  5. Templates/payslips/macros
    By Erve in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2010, 12:31 PM
  6. Printing in Excel 2007
    By toveyj in forum Excel General
    Replies: 2
    Last Post: 12-15-2009, 07:45 AM
  7. Printing in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-08-2007, 09:50 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