EditClear Deletes Multiple Spaces with Smart Cut and Paste |
Q119948
You may unintentionally delete more than one space when you run a macro such as the following that includes the EditClear statement.
Sub Main
EditClear
End Sub
Even when a count of 1 is included in the statement, as in the following
example, Word may ignore the count and delete multiple spaces.
Sub Main
EditClear 1
End Sub
This problem occurs when you have the "Use Smart Cut and Paste" option turned on and any of the following conditions occur:
We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
To delete a single space from a series of spaces, use Clear from the Edit Menu. If you prefer to use a macro, clear the "Use Smart Cut and Paste" check box before running the macro. (To locate this option, choose Options from the Tools menu, select the Edit tab.)
EditClear is a WordBasic statement that deletes the current selection or
one or more characters to the right of the insertion point. When included
in a macro, it may include an argument called Count to delete a specified
number of characters. When run from the Edit menu, Clear is used to delete
the current selection or the character to the right of the insertion point.
EditClear deletes text without changing the contents of the Clipboard.
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this macro code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
"Microsoft Word User's Guide," version 6.0, page 43
"Microsoft Word Developer's Kit," version 6.0, page 388
Additional query words: 6.0 smart cut paste edit clear macword 6.0.1 word6 editclear delete winword
Keywords : kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 28, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |