+ Reply to Thread
Results 1 to 2 of 2

How to generate payslip and print it all at once

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    PH
    MS-Off Ver
    2013
    Posts
    31

    Exclamation How to generate payslip and print it all at once

    I need to print an employees payslip:

    I have already created a template of payslip in a worksheet and the payslip is generated using drop down menu of employee name and vlookups.

    Now i want them to print the payslip of all employees listed on the dropdown list all at once, instead of selecting a name then print.

    also the filename should be based on the employee name, and it should directly print, no more interaction.

    In short, when i click a the print button all payslip will be generated to a certain folder.


    Thanks in advanced!!!

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

    Re: How to generate payslip and print it all at once

    CYCLE THROUGH DV OPTIONS
    Here's a basic macro for cycling through all the Data Validation options in a certain cell. The sample then prints out the workbook, but you can replace that line of code with whatever action you prefer, this should give you the basics.
    Cycle Through Data Validation Options



    The one edit that comes to mind is instead of printing the payslips (which may work for you and you're done..) you can export the sheet to PDF using the same cell reference as a filename source...

    so this line:
    Please Login or Register  to view this content.
    ...is replaced by something like this:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-26-2019 at 05:26 PM.
    _________________
    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!)

+ 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. [SOLVED] HOW to prepare payroll in macros and generate payslip in EXCEL 2003
    By sysen_aee in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-21-2014, 06:39 AM
  2. [SOLVED] Generate a payslip in Excel with info provided.
    By Manuel Pedro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 09:26 AM
  3. VBa: To generate PAYSLIP
    By flopoguns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 03:49 PM
  4. Replies: 2
    Last Post: 04-04-2013, 07:27 AM
  5. [SOLVED] How to batch create / generate and print invoices from Excel data?
    By helenerz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2005, 10:05 PM

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