The information in this article applies to:
SUMMARYThis article includes macro examples for inserting text into a Microsoft Word for Windows document using WordBasic commands. MORE INFORMATIONThe following example WordBasic macro can be used to insert the contents of the Name$ variable at the insertion position in the active document window:
The following sample macro can be used to insert the contents of the Name$
variable as literal text, using the QUOTE field:
The above macro produces the following field syntax:
{quote "John Doe"}The result of a QUOTE field is the text typed between the quotation marks. The Chr$(34) command above is the quotation mark character ("). NOTE: Microsoft provides macros "as is" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. For information about how to do this in Word 97 and later, please see the following articles in the Microsoft Knowledge Base: Q161407 WD97: VB Macro Examples to Insert Text into a Document REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, pages 236, 239 Additional query words: winword2 insert text word6 word7 winword word95 macword
Keywords : kbmacro kbmacroexample macword98 winword ntword macword word7 word95 |
Last Reviewed: October 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |