|
-
Feb 17th, 2004, 08:43 AM
#1
Thread Starter
Lively Member
Printout from excel without common dialog
I want to produce a macro in excel where I do a print (to file) and hardcode the filename - and not get any common dialog window.
SOmeone who knows how to do that??
-
Feb 19th, 2004, 02:56 AM
#2
Thread Starter
Lively Member
Is there noone who can tell how to supress the common dialog windows when printing from macro in excel?
-
Feb 19th, 2004, 10:31 PM
#3
Lively Member
Depends on which version of Excel you are using.
This is from the Excel Help File.
In Excel 97
PrintToFile Optional Variant. True to print to a file. Microsoft Excel prompts the user to enter the name of the output file. There's no way to specify the name of the output file from Visual Basic.
In Excel XP
expression.PrintOut(From, To, Copies, Preview, ActivePrinter, PrintToFile, Collate, PrToFileName)
PrToFileName Optional Variant. If PrintToFile is set to True, this argument specifies the name of the file you want to print to.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|