WD98: Character Format Functions Ignore Leading, Trailing Spaces (182094)
The information in this article applies to:
- Microsoft Word 98 Macintosh Edition
This article was previously published under Q182094 SYMPTOMS
In Microsoft Word, the following character formatting functions ignore
leading and trailing spaces when they evaluate a string:
x = Selection.Font.Hidden
x = Selection.Font.Bold
x = Selection.Font.Italic
x = Selection.Font.Underline
For example, if the text in a selection is formatted as hidden, but
the spaces at the beginning or end of the selection are not formatted
as hidden, the Hidden function returns -1 (True). This indicates that the
entire selection is hidden, even though there are unhidden spaces at the
beginning or end of the selection.
CAUSE
This functionality is consistent with the functionality of other features
in Word, such as the Format Font dialog box and Formatting toolbar. All
these Word features disregard trailing and leading spaces when they
evaluate a selection.
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: | 10/4/2002 |
|---|
| Keywords: | kbdtacode kbFont kbformat kbprb KB182094 |
|---|
|