Re: Word file format problems
- From: "Graham Mayor" <gmayor@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 10 Jun 2007 10:16:53 +0300
Instead of saving the files to your USB storage device save them to the hard
drive and *copy* them using Windows Explorer after establishing that you can
open them again in Word at home. At school reverse the process. Do not open
them directly from the USB device.
If these files are genuinely in Word 97-2003 format, then Word 2007 should
open them.
How are you saving them to DOCX format at home? If you are using Word 2007
then you can convert all with a macro, but it should be unnecessary. The
following assumes that DOCX is the default save format for Word 2007. Run
the macro on files saved on the hard drive!
Sub SaveAllAsDOCX()
Dim strFileName As String
Dim strDocName As String
Dim strPath As String
Dim oDoc As Document
With Dialogs(wdDialogCopyFile)
If .Display <> 0 Then
strPath = .Directory
Else
MsgBox "Cancelled by User"
Exit Sub
End If
End With
If Documents.Count > 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If
If Left(strPath, 1) = Chr(34) Then
strPath = Mid(strPath, 2, Len(strPath) - 2)
End If
strFileName = Dir$(strPath & "*.doc")
While Len(strFileName) <> 0
Set oDoc = Documents.Open(strPath & strFileName)
strDocName = ActiveDocument.FullName
intPos = InStrRev(strDocName, ".")
strDocName = Left(strDocName, intPos - 1)
strDocName = strDocName & ".docx"
oDoc.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatDocumentDefault
oDoc.Close SaveChanges:=wdDoNotSaveChanges
strFileName = Dir$()
Wend
End Sub
http://www.gmayor.com/installing_macro.htm (dialog access is different from
the illustrations in 2007)
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
JP wrote:
I have been writing reports for my class using a report writing
programme which uses a word 97-2003 template format/file for my
report design. I have written over 100 reports using this format/file
and then taken them to work to put on the schools network with a usb
pen. When I try to open these files at work it prompts me to install
a converter for word-when prompted to do so the result is a load of
nonsense-there are various options to try on this converter such as
unicode. ms dos, default windows-turksih, european etc etc etc-none
make any sense of teh documents. However, when I save each report as
a word 2007 document-the school network computers do open and display
teh word files correctly. Therefore, I have two queries:
What's the qucikest way to convert over 100 word files (97-2003) to
Word 2007 without having to open each one individuallyand resave
each one?
Any ideas why our school network computers are recognising these
97-30 word files and needing a converter? And any solutions to this?
Cheers
JP
.
- Follow-Ups:
- Re: Word file format problems
- From: JP
- Re: Word file format problems
- From: JP
- Re: Word file format problems
- Prev by Date: Re: Can I print audio cassette labels with Word 2007?
- Next by Date: Re: Removing Added Toolbars
- Previous by thread: Re: Can I print audio cassette labels with Word 2007?
- Next by thread: Re: Word file format problems
- Index(es):
Relevant Pages
|