DDE commands that Excel makes visible to a DDE Client

DDE commands that Excel makes visible to a DDE Client

Post by Phillip Middlemis » Wed, 05 Jun 1996 04:00:00



Hi everyone,

Does anyone know where the documentation is that specifies all the
commands that can be sent to Excel via a DDE conversation?

for example I can send the following code (DELPHI) to the program
manager in Windows 3.x to create a new program group :

        DDEClientConv.ExecuteMacro('[CreateGroup(Phony Group)]',true)

but I need to find a list of the commands I can send to Excel.

TIA.

Phil
--
/----------------------------------------------------------------\
| Phillip Middlemiss            | 2 wrongs don't make a right... |
| NZ Forest Research Institute  |                                |

\----------------------------------------------------------------/

 
 
 

DDE commands that Excel makes visible to a DDE Client

Post by Lori Turner-M » Wed, 05 Jun 1996 04:00:00


Hi Phil!

When you initiate a DDE conversation with Excel, you can send commands to
Excel in the Excel 4.0 macro language (or XLM).  If you are unfamiliar
with XLM, you can record actions in Excel to get the equivalent XLM
commands.  To record a macro in Excel, choose Tools > Record Macro >
Record New Macro.  In the dialog box that appears, press the Options
button and select the language "Microsoft Excel 4.0 Macro" and then click
OK to begin recording.

Excel 5.0 comes with a help file that describes all of the XLM commands
and arguments; however, Excel 7.0 does not include this help file but it
can be downloaded from http://www.microsoft.com/kb/softlib (the file name
to download is macrofun.exe).

Thanks, Lori Turner

Microsoft Excel
Answerpoint Support

=========================================================================
The Microsoft Newsgroups are LIVE at http://www.microsoft.com/support
The Microsoft Knowledgebase is available on the Internet at
http://www.microsoft.com/kb/
The Microsoft Software Library is available on the Internet at
http://www.microsoft.com/

 
 
 

DDE commands that Excel makes visible to a DDE Client

Post by Shan » Thu, 06 Jun 1996 04:00:00



Quote:>Does anyone know where the documentation is that specifies all the
>commands that can be sent to Excel via a DDE conversation?

>for example I can send the following code (DELPHI) to the program
>manager in Windows 3.x to create a new program group :

>        DDEClientConv.ExecuteMacro('[CreateGroup(Phony Group)]',true)

>but I need to find a list of the commands I can send to Excel.

That's a good question which I have wondered myself.  From what I can tell
most of the old Excel4 macro-style functions are a good start.  If you
have the "Function Reference" manual for Excel4 (which I think should
really be included with later versions of Excel as well), that should
help.  Otherwise go to Excel5.0c and menu the following sequence:

  Help
    Contents
      Reference Information
        Microsoft Excel Macro Functions Contents

which will give you pretty much the same list - sorry I don't use Excel7.0
because I don't like the Excel7.0 Help structure, but the equivalent may
be in their someplace.

I cannot seem to find the CreateGroup function you are using from Delphi
listed, but I have had success using some of the other Excel4.0 macro
functions through DDE.

Hope this helps.

 
 
 

1. DDE treminate advise loop problems ie terminate DDE Client windows hangs

I have a DDE server application that I open a channel to and when it
terminates it returns a WM_DDE_TERMINATE message to the Powerbuilder
window (which opened the channel). I trap this window message as a 993
(DDE.H) message.number in the other object. This works according to the
DDE specification (Charles Petzhold Windows 3.1)  but according to the
specification the powerbuilder window must then post a message to the
DDE server that terminated to notify windows that it is no longer
communicatiing.
  // start DDE server
   run("DDE_SERVER.EXE")
   DDE_SERVER.handle=getmodulehandle("DDE_SERVER.EXE")
   openchannel("DDE_SERVER.EXE","DOCUMENT",(handle(this)))
  // other event of window that opened channel
   if message.number = 993 then (WM_DDE_TERMINATE)
     post(DDE_SERVER.handle,993,(handle(this)),0)
   end if

the application exits fine but I get an error from windows DDE services
saying it is unable to terminate the DDE server 2 minutes after I ext th
PB app??.   If you try to close the open channel to the server you get
the same response error but you cannot close the pb app. Any input would
be appreciated

Thanks in advance
Ray

2. rj-45 and cat5 questions...

3. dde with Excel when calling a VB function: dde session not re ady

4. DHCP Shuts Down HELP!!

5. dde with Excel when calling a VB function: dde session not ready

6. APMT & Netscape

7. Excel commands to write to filename cmds dde "excel|system" lrecl=512?

8. Looking for Electronic Symbols template...

9. Excel commands to write to filename cmds dde "excel|system" l recl=512?

10. Excel 4 macro commands with DDE

11. Macro resolution of Excel commands via DDE

12. excel dde v4 macro command

13. DDE Excel Command PAGE.SETUP