Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel VBA to print a chart as a pdf file

I want to print a chart to a pdf file when the file is
opened. I am using Excel 2000. I tried using a macro to
write the VBA for me, but the recorder does not capture
the "Save PDF File As" information. Any help would be
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel VBA to print a chart as a pdf file

Hi
you need a 'pdf printer' to be able to print a chart as pdf format.
e.g., Adobe Acrobat

--
Regards
Frank Kabel
Frankfurt, Germany


Golf Club wrote:
I want to print a chart to a pdf file when the file is
opened. I am using Excel 2000. I tried using a macro to
write the VBA for me, but the recorder does not capture
the "Save PDF File As" information. Any help would be
appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA to print a chart as a pdf file

First you need a pdf printer driver.

Then in VBA
' store your active printer
StrActivePrinter = Application.ActivePrinter

' activa your pdf like this
Application.ActivePrinter = "Adobe PDF op Ne05:"

' and setting your printer back
Application.ActivePrinter = StrActivePrinter

For the right name of the PDF printer you can record a macro puch CRTL+P
select by the printer your pdf driver, then cancel

I hope that will help you trough your problem
"Golf Club" schreef in bericht
...
I want to print a chart to a pdf file when the file is
opened. I am using Excel 2000. I tried using a macro to
write the VBA for me, but the recorder does not capture
the "Save PDF File As" information. Any help would be
appreciated.



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
print all worksheets of Excel file to one pdf file Centerfield Excel Discussion (Misc queries) 3 April 30th 09 04:51 AM
my excel is converting all my print jobs to print to file why? Ginger Excel Discussion (Misc queries) 2 April 10th 07 12:28 PM
How do I print from a file created from sending a print to a file Ted Johnston Excel Discussion (Misc queries) 1 February 23rd 06 03:10 AM
my Excel chart doesn't print as it appears on print preview Doug 1014 Excel Discussion (Misc queries) 2 November 7th 05 09:00 AM
FILE Save As / FILE Print greyed out in Excel Jeff Wright Excel Programming 2 September 3rd 03 09:29 AM


All times are GMT +1. The time now is 11:36 PM.

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"