Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Printing Excel to CutePDF

Hi,

I have the following macro to print 3 worksheets to a PDF using CutePDF.

1. The trouble is this is printing the 3 worksheets to 3 separate PDF's.
How can I force it to save the 3 worksheets to a 3 page PDF?

2. How can I specify a default filename in the macro such as "myReport"
instead of being promoted for a filename manually?

Bruce.



Sub DailyReports()

Application.ScreenUpdating = False
myArray = Array("Strategy", "Signals_Breakout",
"Signals_Breakout_Delay")
For Each a In myArray
Range("A1").Select
Sheets(a).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:="CutePDF Writer on CPW2:", Collate:=True
Next a
Sheets("Update").Select
Application.ScreenUpdating = False

End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Printing Excel to CutePDF

I don't know about CuteFTP. I mean, it works fine, but it isn't controllable
via VBA other than being able to be selected as an alternate printer.

Another free FTP printer driver is PDFCreator. This driver has a VBA
interface, and Ken Puls of Excel Guru (http://excelguru.ca) has written some
tutorials about it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Bruce" wrote in message
...
Hi,

I have the following macro to print 3 worksheets to a PDF using CutePDF.

1. The trouble is this is printing the 3 worksheets to 3 separate PDF's.
How can I force it to save the 3 worksheets to a 3 page PDF?

2. How can I specify a default filename in the macro such as "myReport"
instead of being promoted for a filename manually?

Bruce.



Sub DailyReports()

Application.ScreenUpdating = False
myArray = Array("Strategy", "Signals_Breakout",
"Signals_Breakout_Delay")
For Each a In myArray
Range("A1").Select
Sheets(a).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:="CutePDF Writer on CPW2:", Collate:=True
Next a
Sheets("Update").Select
Application.ScreenUpdating = False

End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Printing Excel to CutePDF

Select all
Edit|replace
what: FTP
with: PDF
replace all

<gd&r

Jon Peltier wrote:

I don't know about CuteFTP. I mean, it works fine, but it isn't controllable
via VBA other than being able to be selected as an alternate printer.

Another free FTP printer driver is PDFCreator. This driver has a VBA
interface, and Ken Puls of Excel Guru (http://excelguru.ca) has written some
tutorials about it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______

"Bruce" wrote in message
...
Hi,

I have the following macro to print 3 worksheets to a PDF using CutePDF.

1. The trouble is this is printing the 3 worksheets to 3 separate PDF's.
How can I force it to save the 3 worksheets to a 3 page PDF?

2. How can I specify a default filename in the macro such as "myReport"
instead of being promoted for a filename manually?

Bruce.



Sub DailyReports()

Application.ScreenUpdating = False
myArray = Array("Strategy", "Signals_Breakout",
"Signals_Breakout_Delay")
For Each a In myArray
Range("A1").Select
Sheets(a).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:="CutePDF Writer on CPW2:", Collate:=True
Next a
Sheets("Update").Select
Application.ScreenUpdating = False

End Sub


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Printing Excel to CutePDF

DOH! Can't even blame time of day for that one.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Dave Peterson" wrote in message
...
Select all
Edit|replace
what: FTP
with: PDF
replace all

<gd&r

Jon Peltier wrote:

I don't know about CuteFTP. I mean, it works fine, but it isn't
controllable
via VBA other than being able to be selected as an alternate printer.

Another free FTP printer driver is PDFCreator. This driver has a VBA
interface, and Ken Puls of Excel Guru (http://excelguru.ca) has written
some
tutorials about it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______

"Bruce" wrote in message
...
Hi,

I have the following macro to print 3 worksheets to a PDF using
CutePDF.

1. The trouble is this is printing the 3 worksheets to 3 separate
PDF's.
How can I force it to save the 3 worksheets to a 3 page PDF?

2. How can I specify a default filename in the macro such as "myReport"
instead of being promoted for a filename manually?

Bruce.



Sub DailyReports()

Application.ScreenUpdating = False
myArray = Array("Strategy", "Signals_Breakout",
"Signals_Breakout_Delay")
For Each a In myArray
Range("A1").Select
Sheets(a).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
ActivePrinter:="CutePDF Writer on CPW2:", Collate:=True
Next a
Sheets("Update").Select
Application.ScreenUpdating = False

End Sub


--

Dave Peterson



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
Cutepdf Writer and Excel 2003 umpire_43 Excel Discussion (Misc queries) 0 April 17th 08 04:47 PM
CutePDF Writer and excel umpire_43 Excel Programming 7 March 20th 08 05:18 PM
Excel print in CutePDF cuts off mario Excel Discussion (Misc queries) 0 August 4th 06 05:35 AM
CutePDF multiple files from Excel asdf Excel Discussion (Misc queries) 0 February 3rd 06 01:01 PM
Printing to PDF format using CutePDF Writer in VBA FastOneBaz[_9_] Excel Programming 0 June 3rd 05 02:36 PM


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