The information in this article applies to:
SYMPTOMSIn Microsoft Word, the following character formatting functions ignore leading and trailing spaces when they evaluate a string: x = Selection.Font.HiddenFor 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. STATUSThis 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. MORE INFORMATIONFor information about how to use WordBasic character formatting functions in earlier versions of Word, please see the following article in the Microsoft Knowledge Base: Q106075 WD: Character Format Functions Ignore Leading or Trailing Spaces REFERENCESFor more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base: Q163435 VBA: Programming Resources for Visual Basic for Applications Additional query words: wordcon font hidden bold italic italics underline underscore underlining italicize bolding hiding hide selection beginning ending vb vbe vba
Keywords : kbdta kbdtacode word8 kbwordvba word97 kbFont kbformat |
Last Reviewed: October 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |