Macro required to create PDF documents from a spreadsheet

Hydro Man

New Member
Joined
Jun 29, 2009
Messages
48
I require a macro that will save as a PDF the headings on Row 1 and the information on the Row that is attached to the macro. A macro button would be placed on each row below the Heading Row 1.
The maximum length of the information is to Column M.
The PDFs are to be saved to the same folder that contains the spreadsheet with the information.
The name of the PDF would be derived from the information in Column B and Column A with an underscore between the two.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
For example:
The Headings are on Row 1 (Always).
The Information is on Row 3.
<o:p> </o:p>
Row 1 (Headings)
Name Number Date Amount Tax Comment
<o:p> </o:p>
Row 3 (Information)
ABC Company 123456 02/28/2011 $100.00 $13.00 Plastic Bags
<o:p> </o:p>
The PDF in this case would be:
123456_ABC Company.pdf
<o:p> </o:p>
PDF:
Name Number Date Amount Tax Comment
ABC Company 123456 02/28/2011 $100.00 $13.00 Plastic Bags
<o:p> </o:p>
<o:p> </o:p>
Thank you for your help,
<o:p> </o:p>
Hydro Man
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,616
Messages
6,179,912
Members
452,949
Latest member
beartooth91

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