Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Odd Export as PDF problem - Killing me.

On Oct 12, 12:23*pm, GS wrote:
Michael wrote on 10/12/2011 :





ExportAsFixedFormat does not work with ActiveWindow.SelectedSheets
unless I am missing something, i tired


*ActiveWindow.SelectedSheets.ExportAsFixedFormat Type:=xlTypePDF,
Filename:=ExportFileName, Quality:= _
* * * * xlQualityStandard, IncludeDocProperties:=True,
IgnorePrintAreas:=False, _
* * * * OpenAfterPublish:=True


Is that what you were suggesting?


I have to think that problem is somehow related to the state the file
is in becuase it worked this morning with same file as last night that
was not working


Any other ideas


I think the approach I was thinking needs some further looking into
because I was using a PDF printer not XL2007 SaveAs PDF. Try the SaveAs
approach and specify the XPS or PDF option OR just execute that
menuitem from VBA against the grouped sheets.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc- Hide quoted text -

- Show quoted text -


that is what I am doing save as xps or pdf. Works sometime and then
other times just make one page pdf
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Odd Export as PDF problem - Killing me.

Michael formulated on Wednesday :
On Oct 12, 12:23*pm, GS wrote:
Michael wrote on 10/12/2011 :





ExportAsFixedFormat does not work with ActiveWindow.SelectedSheets
unless I am missing something, i tired
*ActiveWindow.SelectedSheets.ExportAsFixedFormat Type:=xlTypePDF,
Filename:=ExportFileName, Quality:= _
* * * * xlQualityStandard, IncludeDocProperties:=True,
IgnorePrintAreas:=False, _
* * * * OpenAfterPublish:=True


Is that what you were suggesting?


I have to think that problem is somehow related to the state the file
is in becuase it worked this morning with same file as last night that
was not working


Any other ideas


I think the approach I was thinking needs some further looking into
because I was using a PDF printer not XL2007 SaveAs PDF. Try the SaveAs
approach and specify the XPS or PDF option OR just execute that
menuitem from VBA against the grouped sheets.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc- Hide quoted text -

- Show quoted text -


that is what I am doing save as xps or pdf. Works sometime and then
other times just make one page pdf


Have you checked this out?

http://www.microsoft.com/download/en...ang=en&id=9943

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Odd Export as PDF problem - Killing me.

I also grouped some sheets and ran this line of code...

CommandBars.ExecuteMso("FileSaveAsPdfOrXps")

to get the dialog open and set any other options I wanted. It published
all selected sheets.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


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
This is killing me Michael Excel Programming 5 March 12th 08 09:07 PM
Simple problem for you all....killing me though [email protected] Excel Discussion (Misc queries) 5 July 16th 07 01:26 PM
Syntax or Something is KILLING Me Strong Eagle Excel Programming 5 July 2nd 07 04:12 PM
help me out with this - it's killing me.. popovsky[_8_] Excel Programming 6 July 22nd 05 09:20 AM
killing a sub from within an if statement Cliff L Excel Programming 8 May 11th 05 02:04 PM


All times are GMT +1. The time now is 04:04 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"