Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro for printing | Excel Worksheet Functions | |||
Macro printing | Excel Discussion (Misc queries) | |||
printing macro | Excel Discussion (Misc queries) | |||
Printing Macro | Excel Programming | |||
Printing in a Macro | Excel Programming |