Ummm, I guess you're right, Hank. I should have given the OP a more
thoughtful response, as you seem to be, ummm, suggesting. Yes, 400 files
would be a pain, manually. It is interesting that the OP asked for "a
program", and not specific code which he could have gotten in the
programming group. But, ummm, what do I know? At least he did get some good
code.
--
RMC,CPA
Try FILE>SAVE AS and then open the file type box and choose "Excel 5.0/95
Workbook".
Ummm... I think he knows how to do that, Richard. He's asking if
there's a way of automating the process. I don't think that I'd care
to do Save As on 400 files...
You can use a simple VBA macro to do it. Bear in mind that this may
take a while to run, so you may want to leave it running overnight or
at least over lunch time. Also I'd recommend that you do it with
copies of the files rather than the originals just in case; if
anything goes wrong, you're covered. Finally, bear in mind that the
multi version files will be larger than their Excel 97 onwards
cousins, since the file has to contain data for both formats. (I'd
really consider whether you should still be using 95; it's just too
old now. However that's your call.) Finally, this assumes that all
files are in one directory. That's the easiest way of doing it.
Sub ConvertAllFiles()
Dim l_FileCounter As Long
Dim s_CurrentFileName As String
'Change the following to the drive and path
'containing the files
ChDrive "H"
ChDir "H:\EXCEL\Tests_Development\FilesToConvert"
'Get the first xls file in the directory.
s_CurrentFileName = Dir("*.xls", vbNormal)
'This will prevent the "Are you sure" dialog from appearing
'when you SaveAs the new format.
Application.DisplayAlerts = False
'This will make the code faster.
Application.ScreenUpdating = False
Do While s_CurrentFileName <> ""
l_FileCounter = l_FileCounter + 1
'You can tell how many files there are through
'Windows Explorer. The status bar will tell you
'how many have been done.
Application.StatusBar = "Converting file no. " _
& CStr(l_FileCounter) & " (" & s_CurrentFileName & ")"
'Open the file.
Application.Workbooks.Open s_CurrentFileName
'Save in the older format
ActiveWorkbook.SaveAs Filename:= _
"H:\EXCEL\Tests_Development\FilesToConvert\" _
& s_CurrentFileName, FileFormat:= _
xlExcel9795, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:= _
False, CreateBackup:=False
'Close it.
ActiveWorkbook.Close False
'Get the next name.
s_CurrentFileName = Dir
Loop
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Application.StatusBar = False
End Sub