Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RG RG is offline
external usenet poster
 
Posts: 15
Default Printing from a macro

I need to generate a series of individual prints from a spreadsheet, going to
a PDF printer, and giving each one a different filename.
I have set the macro to do this, but it opens a PDFSaveAs window and waits
for a filename. Unfortunately the program is so fast and the PDF printer so
slow that they get out of seuqence and I dont know where I am in the sequence
of reports!
How do I pass the individual filenames to the print command in the macro?
Obviously I need a propoerty name to set, but I cannot guess it. I have tried
PrToFileName as the pop up box suggested that, but it doesn't work. Doesn't
even capitalise the property name when I type it.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
prtofilename:="XYZ"


Where do I find all the property/variable names, please?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Printing from a macro

Maybe the topic Built-In Dialog Box Argument Lists in Visual Basic Help
brings you a bit further!?

And have you been using the Object Browser to explore available possibilities?

Greetings,
Peter
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
Macro for printing Ewout Excel Worksheet Functions 1 September 23rd 06 11:33 PM
Macro printing Stephen C Excel Discussion (Misc queries) 3 April 18th 06 05:27 PM
printing macro johnw Excel Discussion (Misc queries) 0 October 7th 05 02:31 PM
Printing Macro Gary T Excel Programming 3 January 13th 05 01:45 PM
Printing in a Macro Don Guillett[_4_] Excel Programming 0 August 8th 03 01:11 AM


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