Creating and renaming PDF Reports

bolandd

Board Regular
Joined
Aug 17, 2009
Messages
60
I have the following worksheet:

Excel Workbook
ABCDHIKL
1
2ACME HEALTH CARE FACILITIES
3PAYROLL VARIANCE REPORT
4April 23, 2007
5
6
7
8CURRENT PAY PERIOD
9PAYROLL PERIODS4/4/07-4/17/07
10
11ACTUALACTUAL
12ACCOUNTDOLLARSHOURSBUDGETEDBUDGETED
13DESCRIPTION#PAIDPAIDDOLLARSHOURS
14
15
16005AdministrationChief Executive Director600.0010$3,71848$6,24280
17Chief Financial Officer600.0030$4,28372$4,79080
18Adm. Assistant600.0680$1,67780$1,67880
19Adm. Assistant600.0690$1,40575$1,49780
20Funeral Leave-Nonunion600.1311$00$00
21Plt-N-Termination600.1321$00$00
22
23TOTAL$11,082275$14,206320
24
25
26010TransportationCoordinator600.0720$00$90640
27Bus Driver/Trans Work600.0800$4,920375$4,226344
28Funeral Leave-Nonunion600.1311$00$00
29Funeral Leave-Union600.1312$00$00
30Plt-N-Termination600.1321$00$00
31Plt-U-Termination600.1322$00$00
32
33TOTAL$6,142453$5,440408
34
35
36011Inhouse TransportationCoordinator600.0720$00$90640
37Bus Driver/Trans Work600.0800$1,299113$1,880153
38Plt-N-Termination600.1321$00$00
39Plt-U-Termination600.1322$00$00
40
41TOTAL$1,684135$2,786193
Sheet1



I would like to save a pdf report of each section using the values in column A to name the files and place them in a folder named using the value in D9. (in this example, I would have reports named 005.pdf, 010.pdf and 011.pdf and would be contained in a folder named 040407-071707)

Sample: Rows 1 through 15 should be at the top of each report, rows 16 through 23 should be the first report, rows 26 through 33 should be on the second report, rows 36 through 41 should be on the third report, etc... (row count may vary between each report)

I'm fairly proficient with vba, but need some help getting this one figured out.

Thanks in advance...
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I believe I can handle creating the PDF file, but need some help looping through each group in column A and setting the print range.

In the sample data shown, the print ranges would be:
A16 - L25
A26 - L35
A36 - L41

FYI - the last cell in column A will contain the value "END", as there is more data below that row that I do not want to use, but needs to remain in the worksheet. The loop needs to stop when it finds "END".

Can someone help me out with the loop.:confused::confused:
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,546
Members
449,169
Latest member
mm424

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