WD98: Symbol Characters Change to Underline Characters (184634)
The information in this article applies to:
- Microsoft Word 98 Macintosh Edition
This article was previously published under Q184634 For a Microsoft Word 2002 version of this article, see 290978.
SYMPTOMS
When you format text with a symbol font, such as Wingdings, and then change
to a non-symbol font such as Times New Roman, the text is replaced with
underline characters.
CAUSE
Word displays the underline characters after it translates the symbol font
to its Unicode equivalent.
This problem occurs when you do the following:
- Apply a font format using a symbol font, such as Wingdings.
- Type some text.
- Select the text from step 2 and apply a non-symbol font, such as Times
New Roman.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
The following Microsoft Visual Basic for Applications macro converts the
symbol characters to non-symbol characters:
NOTES: Select the underline characters before you run the following macro.
In the Font dialog box that appears, select a non-Symbol font. For
example, Times or Times New Roman.
Sub ConvertSymbol()
Dim dlgFont As Dialog
With Selection
' Check for valid text selection.
' (There must be a selection and
' the selection must be text only.)
If .Type = wdNoSelection Or .Type <> wdSelectionNormal Then
MsgBox "You must select some text to convert."
Exit Sub
End If
' Display the font dialog box to select a non-symbol font.
Set dlgFont = Dialogs(wdDialogFormatFont)
If dlgFont.Display Then
.Cut
.Font.Name = dlgFont.Font
.PasteSpecial DataType:=wdPasteText
End If
End With
End Sub
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbbug kbdtacode kbFont kbmacroexample kbpending KB184634 |
---|
|