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
I assume you mean save as 97-2003 format.
Try this line
Hope this helpswbDest.SaveAs strSavePath & filePrefix & " " & ws.Name & " " & ".xls", FileFormat:=xlExcel8
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks