All Caps Formatting Retained by Selection$() FunctionArticle ID: Q107534
SYMPTOMS
The expected behavior would be for the All Caps formatting, applied from the Format Font dialog box, to be removed from the selection when Selection$() is assigned to a string variable. Note: Selection$() correctly returns unformatted text when the selection is formatted for other formats including Small Caps. STATUS
WORKAROUND
For example: Sub MAIN ResetChar a$ = Selection$() EditUndo End Sub Kbcategory: kbusage kbmacro KBSubcategory: |
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
©1997 Microsoft Corporation. All rights reserved. Legal Notices.
Additional reference words: 6.00 selection formatting winword macword
word6 unformatted text