PC Review


Reply
Thread Tools Rate Thread

Close PDF files

 
 
J Wait
Guest
Posts: n/a
 
      19th Dec 2007
I have several pieces of code that create pdf files by using save as pdf
(ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename: ...)

This automatically opens the pdf files that are created. How can I close
these files?

Thank you for your help.
 
Reply With Quote
 
 
 
 
sebastienm
Guest
Posts: n/a
 
      19th Dec 2007
Hi,
Have you tried to set the OpenAfterPublish (or DisplayFileAfterPublish ?)
parameter of the ExportAsFixedFormat method to False? Based on the
documention (<http://msdn2.microsoft.com/en-us/library/bb238919.aspx>), that
would prevent the files from being opened and viewed right after the export.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com>
<http://www.ready-reports.com>


"J Wait" wrote:

> I have several pieces of code that create pdf files by using save as pdf
> (ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename: ...)
>
> This automatically opens the pdf files that are created. How can I close
> these files?
>
> Thank you for your help.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
All Files Close S1L1Y1 Microsoft Excel Misc 3 30th May 2008 04:35 PM
how do you do a close all files when you have multiple files open. =?Utf-8?B?Y2hyaXMgdHVybmVy?= Microsoft Word Document Management 1 21st Sep 2007 09:46 PM
Can't close PST files Bob Provencher Microsoft Outlook 27 5th Jul 2007 03:37 AM
Why excel close all files when I just want to close one files hon123456 Microsoft Excel Misc 1 2nd Nov 2005 01:45 PM
Close files =?Utf-8?B?THVpcw==?= Microsoft Access VBA Modules 1 28th Jul 2005 08:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.