Generate Multiple PDF Files using a cell value

VinodKrishnappa

New Member
Joined
Aug 6, 2016
Messages
31
Hi, I've situation like this.

In "Sheet1" I'll have data like below list.


Employee No
NameCategoryAmount
12236ABCDTelephone$2100
12243EFGHMedical$4200
12256IJKLTelephone$1566

<tbody>
</tbody>



The above data should come in the following format in different .pdf file for each employee based on empployee no. wise.

Employee No.12243
Employee NameEFGH
Medical$4,200
Telephone$0
LTA%0
Total$4,200

<tbody>
</tbody>

Amount in Words Four Thousand Two Hundred


The data will be for more than 400 emp. i need to provide individual pdf to individual employee. Please help on this.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
It's doable. It just needs a few tricks. And I haven't time right now.

Are there FIXED categories? Ie, what piece of information provides the zero value for telephone and LTA above? Is there a row on Sheet1 with a value ZERO?
And if not, does every employee get to have a value reported?

What the question means is whether you need to de-normalise the data so there's one row per employee and one column per required item, or whether it's freeform.
 
Last edited:
Upvote 0
My method would be to create a new workBOOK, format the cells in that as you would like them to be presented in the PDF (including setting the print area)

Then run through your data top-to-bottom. At each employee:
Clear the data (not the formatting) with '.ClearContents'
Populate the data
Save-As PDF using something you know about the individual employee (maybe even using Employee-number and month to create the desired filename)​
Next
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,511
Messages
6,125,250
Members
449,218
Latest member
daynle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top