Hi,
Don't know if this has ever been mentioned before...
When specying DDE commands in your DDE.ini, you can use most of the old Excel Macro language
commands (What was used before VBA came along). These functions are documented in the XLmacr8.hlp
helpfile (I had to get it off Microsofts Site).
Here's an example of some neat stuff I've been doing with it:
[ExcelAppendData]
Path = c:\Program Files\MsOffice\Office\excel.exe
Application = excel
Topic = system
Format = Tab
XFRDATA = Clipboard
Command1 = [WORKBOOK.SELECT("Data")][SELECT.END("R1C1")]
Command2 = [SELECT.END(4)][SELECT(, "R[1]C")][PASTE()]
This would append data to the end of a existing set of data on sheet "Data".
Makes for some interesting possibilities with DDE actions to.
--
Jeromy Reed
CGI-Application Management Services
Consultant - CSB Remedy Applications
Tel #.: (514) 878-8700 x1316
Fax #: (514) 215-1025
http://webhost02.on.bell.ca/cgitelecomremedyhd4/
1800 McGill College Avenue, fl14
Montreal (PQ), H3A 3J6
--
Mark Brittain wrote:
>
> **
>
> Hi All,
>
> I have a report to do for my manager and I am having some trouble with the
> DDE call. I record a macro that does the search, grabs the results, exports
> it to clipboard, and Book1.xls file opens. Then the excel macro pastes the
> information into the spreadsheet.
>
> Because of formating, I would like to do is call up a different spreadsheet
> (Report1.exe). The Admin Guide refers to the following
>
> Command1 = [NEW (1)] [Paste ()] [Save.As (,0)]
>
> Command1 = [OPEN ("%f)]
>
> Can anyone tell me which to use with an example. Also how do you use the %N
> and %F variables, as I can't seem to make them work???
>
> This is what is in my dde.ini file
> [DDECall]
> Path = D:\Program Files\Microsoft Office\Office\excel.exe
> Application = excel
> Topic = system
> Format = Tab
> XFRDATA = Clipboard
> Command1 = [PASTE ()]
> Command2 = [RUN("PERSONAL.XLS!testmacro")]
>
> Thanks
>
> Mark
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> MARK BRITTAIN
> Team Leader/Remedy Developer
> Customer Support Center
> AppliedTheory Corporation
> 800.727.0793
>
> _____________________________
>
>
_____________________________