+ Reply to Thread
Results 1 to 3 of 3

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

Hybrid View

Guest How do I set up a macro to... 02-28-2006, 04:10 PM
Guest Re: How do I set up a macro... 02-28-2006, 08:15 PM
Guest Re: How do I set up a macro... 03-01-2006, 11:55 AM
  1. #1
    cher
    Guest

    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. #2
    Jim Rech
    Guest

    Re: 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" <cher@discussions.microsoft.com> wrote in message
    news:21544295-22F3-4ACF-AA92-0FE2F553AA08@microsoft.com...
    >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. #3
    cher
    Guest

    Re: 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" <cher@discussions.microsoft.com> wrote in message
    > news:21544295-22F3-4ACF-AA92-0FE2F553AA08@microsoft.com...
    > >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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1