+ Reply to Thread
Results 1 to 2 of 2

Print with Template based on a selected Cell Value

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    India
    MS-Off Ver
    2010 2007
    Posts
    59

    Print with Template based on a selected Cell Value

    Hi,

    This following code is giving me access to prepare & print all employees pay slips individually in a folder. All employees data is in (payrollsheetname) sheet.

    I need little modification in the code so that it can allow me to print one particular employee pay slip. For example in sheet (payrollsheetname) column A consist all the employee identification code. The present code process all the employees payslips at once.

    In modification i will be selecting one employee code to print a pay slip.

    Please Login or Register  to view this content.
    thnk you.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Print with Template based on a selected Cell Value

    The code below will process just the employee of the active cell.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] VBA for Printing to PDF with selected print range based off of a Cell Value
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2017, 11:57 AM
  2. [SOLVED] Print selected rows based on cell data
    By sipa in forum Excel General
    Replies: 13
    Last Post: 10-02-2016, 04:08 PM
  3. add sheet and change print area based on number of line items in template
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2016, 08:55 AM
  4. Set print area of selected range then print preview if ok then print the document!
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 07:10 AM
  5. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  6. Replies: 2
    Last Post: 12-26-2012, 05:02 AM
  7. Print selected cell in 1 sheet
    By st3vi3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-08-2012, 07:03 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