#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default PDF basics

Why does the first macro work but if you combine the first two lines to
shtAssum10.Range("B1:N35").Select - it doesn't?

Sub CreatePDFRates()
shtAssum10.Select
Range("B1:N35").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"\\Spipfile04\dowb1$\2008\annuity\Individual_Illus trator\" &
shtAssum.Range("I39") & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True,
IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default PDF basics

You can't select the worksheet and the range on a worksheet at the same time.
It would be nice, wouldn't it?
--
HTH,
Barb Reinhardt



"Brad" wrote:

Why does the first macro work but if you combine the first two lines to
shtAssum10.Range("B1:N35").Select - it doesn't?

Sub CreatePDFRates()
shtAssum10.Select
Range("B1:N35").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"\\Spipfile04\dowb1$\2008\annuity\Individual_Illus trator\" &
shtAssum.Range("I39") & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True,
IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End Sub

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
VBA ReadyState basics [email protected] Excel Programming 0 January 8th 08 07:17 PM
Add Ins basics KobusD[_2_] Excel Programming 2 August 8th 07 02:49 AM
basics? n21 New Users to Excel 7 September 21st 06 12:37 PM
Excel Basics gallegos1580 Excel Discussion (Misc queries) 2 January 7th 05 06:45 PM
Help with the basics. Starting out. beeawwb Excel Programming 2 January 9th 04 12:17 AM


All times are GMT +1. The time now is 01:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"