+ Reply to Thread
Results 1 to 6 of 6

VBScript Code to Save an Excel File in Excel 97-2003 Format

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    Ragama, Sri Lanka
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBScript Code to Save an Excel File in Excel 97-2003 Format

    Hi,

    I'm trying to write this Function that will basically create an excel file and save it in 97-2003 format. i.e basically it has to be saved as a *.xls file although I have Excel 2007 on my system.

    Sample of My Function
    Please Login or Register  to view this content.
    This Function results in creating an excel file with only 1 sheet in it, but the file is saved in excel 2007 format where as I need it to be saved as 97-2003 format.

    Does anyone know the code to save it as that?

    Thanks
    Last edited by HishamSingalaxana; 06-03-2010 at 04:07 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBScript Code to Save an Excel File in Excel 97-2003 Format

    Welcome to the Board, per forum rules please edit your prior post and encase your Function within CODE tags.

    http://www.rondebruin.nl/saveas.htm

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBScript Code to Save an Excel File in Excel 97-2003 Format

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Added this time only
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBScript Code to Save an Excel File in Excel 97-2003 Format

    I'm guessing that the code saves to the version of Excel installed. This is a VBA forum,not vbScript Forum

  5. #5
    Registered User
    Join Date
    06-03-2010
    Location
    Ragama, Sri Lanka
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBScript Code to Save an Excel File in Excel 97-2003 Format

    Thank you, Roy

    Guess I'm in the wrong forum

    Noted about the Code tags btw thanks for adding them.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,303

    Re: VBScript Code to Save an Excel File in Excel 97-2003 Format

    If you checked the link DO posted, you would see that you need to use:
    Please Login or Register  to view this content.
    Anyone who confuses correlation and causation ends up dead.

+ 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