ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I set up a macro to save an Excel worksheet as a .prn file? (https://www.excelbanter.com/excel-programming/354640-how-do-i-set-up-macro-save-excel-worksheet-prn-file.html)

Cher

How do I set up a macro to save an Excel worksheet as a .prn file?
 
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.

Jim Rech

How do I set up a macro to save an Excel worksheet as a .prn file?
 
Check out the worksheet SaveAs method in VB help, with particular attention
to the File Format parameter.

--
Jim
"cher" wrote in message
...
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.




Cher

How do I set up a macro to save an Excel worksheet as a .prn f
 
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.

"Jim Rech" wrote:

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

--
Jim
"cher" wrote in message
...
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.






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

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