How do I set up a macro to save an Excel worksheet as a .prn file?

G

Guest

I have a multipage workbook and I need to setup a macro to save "sheet 3" as
a seperate .prn file. I've tried using the SaveAs macro function with .prn
at the end of the file name but it still saves it in Excel form.
 
J

Jim Rech

Check out the worksheet SaveAs method in VB help, with particular attention
to the File Format parameter.
 
G

Guest

I entered:

Activeworksheet.FileFormat=xltemplate Then
Active Worksheet.SaveAs Fileformat:=prn
End If

This is not working. I'm also no sure where to put in the path and file
name to Save As. The workbook is setup as a template.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top