Microsoft KB Archive/71341

{|
 * width="100%"|

Using ToolBook DDE to Run WordBASIC Macros
'Article ID: Q71341

Creation Date: 16-APR-1991

Revision Date: 26-MAR-1997' 1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c WINDOWS kbmacro

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c
 * Microsoft Windows operating system versions 3.0 and 3.1

SUMMARY

You can send commands from ToolBook to other Windows applications by performing the executeRemote command using the Windows Dynamic Data Exchange (DDE) protocol.

The syntax of the OpenScript executeRemote command when used to execute a WordBASIC command in Word for Windows is as follows:

executeRemote &quot;[command]&quot; application winword The following OpenScript statement will execute the WordBASIC FilePrint command: executeRemote &quot;[FilePrint]&quot; application winword MORE INFORMATION

OpenScript is a object-oriented programming language used to create scripts for objects created with the ToolBook Software Construction Set for Windows by Asymetrix.

The format of the executeRemote argument will depend on the application at which you direct the executeRemote statement. Word for Windows requires WordBASIC statements while Excel requires macro commands.

The syntax of the command is as follows;

executeRemote &quot;command&quot; application appname topic topicname The only argument required by an executeRemote command is the command you want the application to execute. You must enclose this argument within quotation marks. WordBASIC also requires the brackets inside the quotation marks. Although it is not required, it is a good practice to include the application argument. The optional topic argument may be used to request a specific application filename. Direct DDE questions using the OpenScript programming language to Asymetrix Corporation by calling (206) 637-1600.

Reference(s):

&quot;ToolBook Companion.&quot; Version 1.00, The Cobb Group, page 539.

&quot;Asymetric Using OpenScript.&quot; Version 1.00, &quot;An Introduction and Reference to the OpenScript Language&quot;, page 319.
 * }

-

 KBCategory: kbmacro

KBSubcategory:

Additional reference words: 1.00 1.10 1.10a 2.00 2.00a winword2

2.00a-CD 2.00b 2.00c winword

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; 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.

''