View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cresta Cresta is offline
external usenet poster
 
Posts: 76
Default Multiple worksheet named ranges to PDF

Hello
I have been given the task of exporting multiple named ranges from different
sheets to a pdf file.

I can do it from a single sheet with many ranges using the following code

Range("A8:G19,A83:N96").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, FileName:= _
"c:\filename.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True,
IgnorePrintAreas _
:=False, OpenAfterPublish:=True

Could anyone point me in the right direction for ranges on differnt sheets.
Thanks