Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to Save, Print, and Close file

Status
Not open for further replies.

boottmills

Mechanical
Feb 23, 2006
90
I'm looking to see (before I jump on in) if there is a way to have a macro in EXCEL save a file, print the file, and then close the file. Is this something that can be done through a macro?

TIA!

~Boottmills
 
Replies continue below

Recommended for you

What application?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
EXCEL...Sorry...just edited it :)

~Boottmills
 
Have you tried recording a macro?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Save
Link

Print
Link

Close
Link

String those together, try one at a time to get the hang of it and make sure you are getting the desired effect. By default the printout method simply uses the currently selected printer, so depending on what printer you used last it will just print to that (i.e. physical printer or maybe PDF etc) unless you use the ActivePrinter variant. You can always use a userform to select between different printers if desired.
 
Are you trying to save, print, and close the Excel workbook or another file (such as a text file)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor