Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close PDF files
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close PDF files
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Why excel close all files when I just want to close one files | Excel Discussion (Misc queries) | |||
open and close files | Excel Worksheet Functions | |||
All Files Close | Excel Discussion (Misc queries) | |||
Auto close .csv files | Excel Discussion (Misc queries) | |||
Close Files Fast | Excel Programming |