Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro save a file name from a cell in 1st worksheet karene Excel Discussion (Misc queries) 2 April 10th 06 12:13 PM
Macro to save Excel file with date and time in the file name? sonic_d_hog Excel Programming 2 January 5th 06 05:57 PM
Macro to export a worksheet and save as new file Mike_M Excel Programming 2 May 25th 05 10:37 AM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
using macro to save worksheet with unique file name Noell Excel Programming 3 October 15th 03 10:24 PM


All times are GMT +1. The time now is 01:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"