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

I want to control the printer output, when I am sending a print output to a file as shown in my code below. How do I select the destination directory and the filename without entering text in the popup textbox, and how do I suppress the popup textbox, so that the program continue uninterrupted

Range("A1:F63").Selec
Application.ActivePrinter = "Generic PostScript Printer on FILE:
Selection.PrintOut Copies:=1, ActivePrinter:=
"Generic PostScript Printer on FILE:", Collate:=Tru
ActiveWorkbook.Sheets("SCAN").Activat

pe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Print to File

Per

There is a PrintToFile argument and a PrToFileName argument to the PrintOut
method. I believe if you set the former to True and specify the latter, you
won't get prompted. Note that PrToFileName was added in XL2000 and won't be
available in older versions.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Per" wrote in message
...
I want to control the printer output, when I am sending a print output to

a file as shown in my code below. How do I select the destination directory
and the filename without entering text in the popup textbox, and how do I
suppress the popup textbox, so that the program continue uninterrupted.

Range("A1:F63").Select
Application.ActivePrinter = "Generic PostScript Printer on FILE:"
Selection.PrintOut Copies:=1, ActivePrinter:= _
"Generic PostScript Printer on FILE:", Collate:=True
ActiveWorkbook.Sheets("SCAN").Activate

per



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
my excel is converting all my print jobs to print to file why? Ginger Excel Discussion (Misc queries) 2 April 10th 07 12:28 PM
How to format the extension less file to print with Dos's Print Command Badshah Excel Discussion (Misc queries) 0 November 28th 06 12:44 PM
Can view file in print preview, but not print layout.... kkaden Excel Discussion (Misc queries) 1 March 22nd 06 05:54 PM
print and print preview not active in file drop down Bjorne Excel Discussion (Misc queries) 2 March 21st 06 06:36 AM
How do I print from a file created from sending a print to a file Ted Johnston Excel Discussion (Misc queries) 1 February 23rd 06 03:10 AM


All times are GMT +1. The time now is 10:05 PM.

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"