Microsoft Word

Summary: How to transfer Microsoft Word files between Mac and PC. Macros to speed up things.
 

Introduction

Generally, you get the same results importing on the target computer and exporting on the source computer when you exchange text files between Word for the Macintosh and Word for Windows. It is not quite true when your file contains graphics. We found that the conversion modules of Word for the Macintosh do a better work converting to and from the Word for Windows files than the modules of Word for Windows.

Word for the Macintosh

From version 6, Word files are identical (binary compatible) on the PC and on the Macintosh. There should be no more conversion problems. However, you should note that the migration to Word 6 doesn't proceed so fast on the Macintosh because the perceived advantages of this move are not blatant. Word 6 is pretty slow, even on a Power Mac. If you have to give a Word file to a Macintosh user, you better give her/him a Word 5 file. If you know that the file will be mounted in a DTP package, you should definitively give a Word 4/5 file. Adobe and Quark had a hard work to produce usable import filters for Word 6.
Word 5 for the Macintosh opens all PC Word formats up to Word Windows 2. Word 4 for the Macintosh only imports the Word DOS files. All versions of Word for the Macintosh can export to Word DOS (3/4/5).
Identification codes of Word for the Macintosh versions 1, 3, 4 et 5:
FE 32 for Word 1
FE 34 for Word 3
FE 37 for Word 4 et 5.
Word 3 is not supported any more in Word for Windows 6 and higher. You therefore have to open the files in a more recent version of Word for the Macintosh and resave in Word 5 or 6.

If you get incorrect accented characters opening some Word DOS files in Word Mac 5 (it never happened with Word Mac 4), you should know that Word Mac 5 insists on getting a correct code page at the end of the file header. Word 5/5.5 on the PC put this code at the right place, but it is not the case of Word DOS 3/4 and of some conversion packages (main culprit: Wordperfect). You will have to open the files with a binary editor and put B5 and 01 (437 in little-endian) at offsets 7E and 7F of the Word file.

Word on the PC

Word for Windows 2 can import Word Mac 4/5. As a matter of fact, it is even the best revision level to exchange data between platforms and you should get back to it if you encounter problems (mostly with version 6). Word for Windows (versions 2/6/7) can't import files created in Word 3 for the Macintosh. It is hard to ascertain the origin of those files because the signature is the same for Word 3, 4 and 5 ('MSWDWDBN'). If you use an hex editor, look at the second byte of the file. If you have 34h, it is a Word 3, if 37h, Word 4/5.
Word for Windows 6 uses the same binary format as Word 6 for the Macintosh. When you get errors opening Macintosh Word 5/6 files in WinWord 6 (accented characters, corrections which don't make it to the disk) with the saved and reopened file, you will have to proceed that way: reopen the original Macintosh file, select the whole file, go in the 'Tools' menu and check the language you want. Go in the 'File' menu and check the paper format in the 'Layout' item. We observed that WinWord 6 often messed with these two parameters.
Word 3/4/5/5.5 for DOS can't handle Macintosh Word files. But Word for the Macintosh can save as Word DOS files.

Conversion Macrocommands

You will find below three Word macros to automatically save in Word Mac 5 from WinWord 2, 6 and 97. The two macros for Word 2/6 are still in French, but you should not have big problems to rewrite them in English. The main difficulty is not to save in a specific format, but to get the filename in a variable of the macro. We found the trick of the dialogbox 'Statistics'. Maybe there are others. If you do the work of porting this macro in English, please send it to us. It will surely help some users. It should not be difficult. Just register a macro while getting the character count and saving the file under another format.

Macro to save in Word Mac 4/5 from Word Windows 97

Sub SaveMac5()
'
' SaveMac5 Macro
' (c) 1999 Pierre Duhem
'
Dim nomfich, nomfich2 As String
Dim lg As Integer
nomfich = ActiveDocument.Name
lg = Len(nomfich)
nomfich2 = Left(nomfich, lg - 3) + "mcw"
ActiveDocument.SaveAs FileName:=nomfich2, FileFormat:=108, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
ActiveDocument.Close
End Sub

Macro to save in Word Mac 4/5 from Word Windows 6

Sub MAIN
'Macro saving the current file in Word Mac 5, extension "mcw"
'Version for Word Windows 6
Dim nom$
Dim dlg1 As StatistiquesDocument
Dim dlg2 As FichierEnregistrerSous
FichierRésumé .MiseAJour
GetCurValues dlg1
nom$ = dlg1.NomFichier
pos = InStr(nom$, ".")
nom$ = Left$(nom$, pos) + "mcw"
FichierEnregistrerSous .Nom = nom$, .Format = RechercheConvertisseur ("MSWordMac")
FichierFermer (2)
End Sub

Macro to save in Word Mac 4/5 from Word Windows 2

Sub MAIN
'Macro saving the current file in Word Mac 5, extension "mcw"
'Version for Word Windows 2
Dim nom$
Dim dlg1 As StatistiquesDocument
'To get statistics, character count, etc.
Dim dlg2 As FichierEnregistrerSous
'to save as...
FichierEnregistrer
GetCurValues dlg1
nom$ = dlg1.NomFich
pos = InStr(nom$, ".")
nom$ = Left$(nom$, pos) + "mcw"
FichierEnregistrerSous .Nom = nom$, .Format = 109, .VerrouillerSaufAnnotations = 0, .MotDePasse = "" 
FichierFermer End Sub

 
Pierre Duhem (ex-Logiciels & Services Duhem)
3, rue Pierre Haret - F-75009 Paris (France) - Tel. (+33) [0]149 700 455
web: http://www.macdisk.com