Word Perfect to Word

  Mike D 12:55 02 Dec 2005

I have lots of smallish files that were saved onto floppies in an old version of Word Perfect. I kept them on the basis that they might come in handy, and they have. I have no problem opening them individually in Word and then resaving as Word Documents. Being a lazy soul, I was wondering if there is an easy way to do this en bloc.

Any thought appreciated.


  Access genu 13:00 02 Dec 2005

you could write some VB in word that seaches the floppy, then opens each WP document and saves a copy back to C as a word document

  Access genu 13:53 02 Dec 2005

'Create a reference to Microsoft Scription Runtime

'Copy the follwoing code into WORD VB editor

'insert your floppy

'Run GenDrive

Dim FSO As New FileSystemObject

Dim myFile As File

Function GenDrive()

Dim myDrv As Drive

For Each myDrv In FSO.Drives

If myDrv.DriveLetter = "A" Then

GetTheFolders FSO.GetFolder(myDrv.Path)

End If


End Function

Function GetTheFolders(MyFolder As Folder)

Dim myFld As Folder

GetTheFiles MyFolder

For Each myFld In MyFolder.SubFolders

GetTheFolders myFld


End Function

Function GetTheFiles(myFld As Folder)

Dim myFile As File

For Each myFile In myFld.Files

ChangeFileOpenDirectory myFld

ConvertFile myFile


End Function

Function ConvertFile(myFile As File)

Documents.Open myFile.Name, False

ActiveDocument.SaveAs "c:\WORD_" & myFile.Name, wdFormatDocument

Documents.Close False

End Function

  Mike D 14:39 02 Dec 2005

Access genu

Thanks for that. I don't know quite what I will be doing, but I will do exactly as you say and keep my fingers crossed!


This thread is now locked and can not be replied to.

Elsewhere on IDG sites

The Evil Within 2 review-in-progress

InVision Studio takes on Adobe XD and Sketch

Camera tips to take better iPhone photos

Comment transformer un iPhone en borne Wi-Fi ?