The information in this article applies to:
SYMPTOMSIn Word versions 2.x through 6.x, if you execute the FileSaveAs command from a WordBasic macro while editing a Word Document Object, the following error message occurs, regardless of the file name specified: Word for Windows version 7.x does not issue an error message. For example, the following macro command causes this error message:
WORKAROUND
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.
Note: Use SendKeys only when there is no alternative, and then use it with
caution. You should test even the simplest use of SendKeys under a variety
of conditions to avoid unpredictable results, data loss, or both. When
stepping through a macro (using the Step or Step Subs button on the Macro
toolbar) that contains a SendKeys instruction, note that the macro will
not perform as expected unless the SendKeys instruction and the instruction
that activates the target application or dialog box are on the same line,
separated by a colon.
MORE INFORMATION
If you execute the FileSaveAs command by choosing Save As from the
File menu, Word saves the object as a Word document. You cannot
perform the same operation using a WordBasic macro.
Additional query words: ole embed
Keywords : kbmacro kbole wordnt word6 winword2 word7 word95 macword6 word |
Last Reviewed: September 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |