Extremely Odd Word Document

CoolRunnings

Senior member
Jun 24, 2003
395
0
76
www.livewirepc.com
Ok here's one that has me stumped. I have a file that a customer of mine sent and she says it reads as gibberish. I open it and it reads just fine and I can print it. She's using Office 2007 and I'm using Office 2010. Here's where things get really odd:

If I try to change the font in the text of the document on my computer, it changes to gibberish. If I take that same file that reads ok for me and try to open it on her computer, it reads as if the font were some greek format! Can anyone tell me what's up with this file? I have linked the original document and a PDF (just so if you can't open it you can see what it's supposed to look like) below.

http://www.fileden.com/files/2012/4/11/3290466/ERM RH B&B Movie Collection.docx

http://www.fileden.com/files/2012/4/11/3290466/ERM RH B&B Movie Collection.pdf
 
Last edited:

Steltek

Diamond Member
Mar 29, 2001
3,222
991
136
The document uses the SuperFrench font - if this font isn't present on the system the document is being opened on, it will display as gibberish. The reason it does this is the same reason you can't edit the text font - the issue is related to the SuperFrench font itself. I think that it is an old symbol font, and the font character codes in Word don't align properly with any other font. Word thus can't substitute another font if it is missing from the system, and by the same token you can't edit and change the font for the same reason.

I was able to fix the problem by inserting and running the following macro on the document (I can't take credit for it, as I didn't write it -- it is something I picked up to fix a similar problem several years ago and saved):

' Make sure the symbol font isn't used in your style definition(s)
Dim myChar As Range
For Each myChar In ActiveDocument.Characters
Select Case AscW(myChar)
Case &HF000 To &HF0FF
' if the symbol font isn't in your style definition, you can use the
' following line to set the font to that defined in the style.
myChar.Font.Name = myChar.Style.Font.Name
myChar.Text = ChrW(AscW(myChar) - &HF000)
End Select
Next myChar

To run the macro, open the original document. Press ALT-F11 in Word to run the VBA editor. Click on Tools menu in the Editor, select Macros. Enter a macro name (i.e. Macro1) in the box that pops up and hit Create. Copy/paste the macro text shown above in between the SUB and END SUB in the code window. Close the code window, then close the VBA editor window. In the Word ribbon on your document, hit View and then select Macros. Your macro (e.g. Macro1) should be available - run it. It may take a minute or two to run - if you have all pages of the document open in print layout mode, you can actually watch it make the font changes as it runs.

Once it completes, hit File, Save as, and your new file name. You'll get a pop up box that says "The following cannot be saved in a macro free document". Just select "Yes" to save the file without including the macro. You should now be able to edit the fonts in the newly saved document.

Hope this helps. If you can't get it to work, drop me a PM and I'll email the copy of the document I ran the macro on.

FYI: Encourage the customer not to use the SuperFrench font again for the main body of the document, or the problem will likely happen again....

EDIT: Further testing seems to indicate that you can go back to the SuperFrench font again after the fix, but I'm not sure that the problem won't just recur again at some point in the future.
 
Last edited:

radhak

Senior member
Aug 10, 2011
843
14
81
Wow, Steltek! Middle of the night, too!

An idle question - could she not simply select the entire text and changed the font?
 

Steltek

Diamond Member
Mar 29, 2001
3,222
991
136
Wow, Steltek! Middle of the night, too!

An idle question - could she not simply select the entire text and changed the font?

Yeah, was sick and couldn't sleep....

Concerning changing the font, it won't work. If you try to edit the text of the original document in any way (including changing the font), each character of the text is replaced with a square placeholder box (i.e. it turns to gibberish). In this case, running the provided macro fixes the problem and allows you to edit the font and/or text.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |