The information in this article applies to:
SUMMARY
When you use a Microsoft Visual Basic 3.0 application, you cannot call a
Visual Basic for Applications or WordBasic instruction using named
arguments. Instead, you must identify these arguments by position using
commas as placeholders.
Word 97 Visual Basic for ApplicationsThe following example shows the Visual Basic for Applications syntax as it might appear in a Visual Basic for Applications macro in Word:
Syntax:
To use this instruction in a Visual Basic 3.0 procedure, you would write:
The following Visual Basic procedure opens a Word Document as read-only
with the file name appearing on the MRU (Most Recently Used) list
on the File menu.
MORE INFORMATIONIf you want to leave out an argument, you must indicate the missing argument with a comma. Trailing commas at the end of an instruction can be omitted. In the example above, it is not necessary to add additional commas after the final argument. Additional query words: wordcon ole automation word basic object container position vba
Keywords : kbdta word97 |
Last Reviewed: October 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |