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
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.
macro i mean,
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 theicon 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!)
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
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.
Dear Jbeaucaire,
Thank you very much
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks