ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing all files in a folder (https://www.excelbanter.com/excel-programming/338158-printing-all-files-folder.html)

Michael Smith

Printing all files in a folder
 
Ok, at the end of my sub, I want to have the print dialogue box pop up,
let the user choose a printer, and then print all the files in a folder,
say C:/Sales

TIA,
Mike


*** Sent via Developersdex http://www.developersdex.com ***

Bob Flanagan

Printing all files in a folder
 
Try this:

Application.Dialogs(xlDialogPrint).Show
or response = Application.Dialogs(xlDialogPrint).Show

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Michael Smith" wrote in message
...
Ok, at the end of my sub, I want to have the print dialogue box pop up,
let the user choose a printer, and then print all the files in a folder,
say C:/Sales

TIA,
Mike


*** Sent via Developersdex http://www.developersdex.com ***




Tom Ogilvy

Printing all files in a folder
 
try these and see which is appropriate

application.Dialogs(xlDialogPrinterSetup).Show
application.Dialogs(xlDialogPrint).Show

--
Regards,
Tom Ogilvy

"Michael Smith" wrote in message
...
Ok, at the end of my sub, I want to have the print dialogue box pop up,
let the user choose a printer, and then print all the files in a folder,
say C:/Sales

TIA,
Mike


*** Sent via Developersdex http://www.developersdex.com ***




Michael Smith

Printing all files in a folder
 
Ok the printersetup dialogue box is just what I need, now how do I Print
all files in a folder



*** Sent via Developersdex http://www.developersdex.com ***


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com