+ Reply to Thread
Results 1 to 7 of 7

excel payslip

  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    italy
    MS-Off Ver
    Excel 2007
    Posts
    3

    excel payslip

    Dear All,

    Can I request VBA code to generate payslip base on attach.
    sheet 1 is the raw data
    sheet 2 is the payslip format

    i have 2000 rows but i intentionally put 2 lines only. Pls help
    Last edited by mandz; 09-14-2012 at 12:00 AM.

  2. #2
    Registered User
    Join Date
    09-08-2012
    Location
    italy
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: excel payslip

    macro i mean,

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: excel payslip

    This macro will insert each ID Number into cell B5 one at a time and print the payslip.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    09-08-2012
    Location
    italy
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: excel payslip

    Dear Jbeaucaire,

    Thanks on the macro code. But it print out continously , May I request to do it 3 payslips on one page with different ID number , but with pause - thanks

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: excel payslip

    You could set your Payslip page up with 3 "sections". Just copy the current layout twice more on the sheet and edit the formulas in each section appropriately.

    Then the macro just needs to put 3 IDs on the sheet at a time. Here's how that code would look. You'll have to edit the macro to target the correct 3 ID cells.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-08-2012
    Location
    italy
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: excel payslip

    Dear Jbeaucaire,

    Thank you very much

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: excel payslip

    I have marked this thread solved for you.

    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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