+ Reply to Thread
Results 1 to 3 of 3

Thread: Saving as 2003-2007 format within Macro

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Saving as 2003-2007 format within Macro

    I have set a macro in Excel to save each individual worksheet as a separate file. The problem is that each file is now being saved in the 2007 version where most people that need it are using the 2003 - 2007 version. The source document is in 2003-2007. can anyone advise on how to change this?

    The current code being used is

    Sub NewBook1()
    '
    Set wbSource = ActiveWorkbook
     
    For Each ws In wbSource.Sheets
    ws.Copy
    Set wbDest = ActiveWorkbook
    wbDest.SaveAs strSavePath & filePrefix & " " & ws.Name & " " & fileSuffix
    wbDest.Close
    Next
     
    Application.ScreenUpdating = True
     
    '
    End Sub

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Saving as 2003-2007 format within Macro

    I assume you mean save as 97-2003 format.

    Try this line
    wbDest.SaveAs strSavePath & filePrefix & " " & ws.Name & " " & ".xls", FileFormat:=xlExcel8
    Hope this helps
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Saving as 2003-2007 format within Macro

    Quote Originally Posted by Marcol View Post
    I assume you mean save as 97-2003 format.

    Try this line
    wbDest.SaveAs strSavePath & filePrefix & " " & ws.Name & " " & ".xls", FileFormat:=xlExcel8
    Hope this helps
    Excellent - thanks for the help!!!!

+ 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.2.0