Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default excel tp pdf

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet to pdf
format using vba code
  #2   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default excel tp pdf


Using XL 2003 and perhaps the last couple versions before that, you must
have the Acrobat writer installed on your machine (i.e. just Reader won't cut
it).

If you have it, you can record a macro in XL where you change the printer
(File then Print menu) to "Adobe PDF" and print a document; then copy that
macro to your code. That may be the easiest way.

HTH

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet to pdf
format using vba code

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default excel tp pdf

If the $$ for full Adobe Acrobat is a problem, there are also some free
downloads that create .pdf files. I have one called PrimoPDF, and it works
fine. Like Acrobat, when you install it, it creates a new "virtual printer."

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet to pdf
format using vba code

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default excel tp pdf

Excel 2007 has an add-on for PDF publishing. It is easy to do using VB

"LarryP" wrote in message
...
If the $$ for full Adobe Acrobat is a problem, there are also some free
downloads that create .pdf files. I have one called PrimoPDF, and it
works
fine. Like Acrobat, when you install it, it creates a new "virtual
printer."

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet to
pdf
format using vba code


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default excel tp pdf

ok but that only gives me code to print the document not the code to
save/convert the document to pdf


"XP" wrote:


Using XL 2003 and perhaps the last couple versions before that, you must
have the Acrobat writer installed on your machine (i.e. just Reader won't cut
it).

If you have it, you can record a macro in XL where you change the printer
(File then Print menu) to "Adobe PDF" and print a document; then copy that
macro to your code. That may be the easiest way.

HTH

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet to pdf
format using vba code



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default excel tp pdf

No, it lets you "print" to pdf as the printer virtually; no paper involved.
It is really a Save.

NickHK

"laughing gravy" wrote in message
...
ok but that only gives me code to print the document not the code to
save/convert the document to pdf


"XP" wrote:


Using XL 2003 and perhaps the last couple versions before that, you must
have the Acrobat writer installed on your machine (i.e. just Reader

won't cut
it).

If you have it, you can record a macro in XL where you change the

printer
(File then Print menu) to "Adobe PDF" and print a document; then copy

that
macro to your code. That may be the easiest way.

HTH

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet

to pdf
format using vba code



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default excel tp pdf

Hi Nick

Yes I see that now thanks.

But(sorry to be a pain) this needs manual intervention to save the document
+ if I was running/creating more than 1 document I get an error if the pdf
print page is not closed down.

"NickHK" wrote:

No, it lets you "print" to pdf as the printer virtually; no paper involved.
It is really a Save.

NickHK

"laughing gravy" wrote in message
...
ok but that only gives me code to print the document not the code to
save/convert the document to pdf


"XP" wrote:


Using XL 2003 and perhaps the last couple versions before that, you must
have the Acrobat writer installed on your machine (i.e. just Reader

won't cut
it).

If you have it, you can record a macro in XL where you change the

printer
(File then Print menu) to "Adobe PDF" and print a document; then copy

that
macro to your code. That may be the easiest way.

HTH

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a spreadsheet

to pdf
format using vba code




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default excel tp pdf

Working Adobe Acrobat, methods of automation depend on the version
installed.
Other free pdf printers are available that make automation somewhat simpler;
maybe look at one of those.

NickHK

"laughing gravy" wrote in message
...
Hi Nick

Yes I see that now thanks.

But(sorry to be a pain) this needs manual intervention to save the

document
+ if I was running/creating more than 1 document I get an error if the

pdf
print page is not closed down.

"NickHK" wrote:

No, it lets you "print" to pdf as the printer virtually; no paper

involved.
It is really a Save.

NickHK

"laughing gravy" wrote in

message
...
ok but that only gives me code to print the document not the code to
save/convert the document to pdf


"XP" wrote:


Using XL 2003 and perhaps the last couple versions before that, you

must
have the Acrobat writer installed on your machine (i.e. just Reader

won't cut
it).

If you have it, you can record a macro in XL where you change the

printer
(File then Print menu) to "Adobe PDF" and print a document; then

copy
that
macro to your code. That may be the easiest way.

HTH

"laughing gravy" wrote:

Hi

I wondered if anyone had any suggestions on how to save a

spreadsheet
to pdf
format using vba code






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"