Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do you print to pdf in VBA and tell it where to save the pdf file and
what to name the pdf file. I can save as pdf in vba, but this does not pdf the file correctly (different tabs save as different sizes in pdf and it's a mess). Only printing (not saving) to pdf does it correctly. When I record myself, it records: ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)" |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can try this link...
http://www.excelguru.ca/node/21 -- HTH... Jim Thomlinson "J Wait" wrote: How do you print to pdf in VBA and tell it where to save the pdf file and what to name the pdf file. I can save as pdf in vba, but this does not pdf the file correctly (different tabs save as different sizes in pdf and it's a mess). Only printing (not saving) to pdf does it correctly. When I record myself, it records: ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)" |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
J Wait wrote:
How do you print to pdf in VBA and tell it where to save the pdf file and what to name the pdf file. I can save as pdf in vba, but this does not pdf the file correctly (different tabs save as different sizes in pdf and it's a mess). Only printing (not saving) to pdf does it correctly. When I record myself, it records: ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)" I used pdfcreator a lot for generating (aka printing) PDFs from VBA. http://sourceforge.net/projects/pdfcreator/ Samples are included as far as I know. Have a look at http://www.dailydoseofexcel.com/arch...el-pdfcreator/ for further assistance. Stephan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print and Print Preview Graphic Moving Resizing 2007/2003 | Excel Discussion (Misc queries) | |||
cell borders that I create dont show on print preview or print | Excel Discussion (Misc queries) | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Active cell counting in particular print page (one sheet having different print area) | Excel Worksheet Functions | |||
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook | Excel Programming |