The SAS Output Delivery System and reporting techniques

Excel commands via DDE

Reply
Respected Advisor
Posts: 2,838

Excel commands via DDE

In the documentation for using DDE to write to Excel, there are examples of Excel commands embedded in SAS code, for example, as shown here

     PUT '[select("r1c1:r20c3")]';

     PUT '[sort(1,"R1C1",1)]'; 

     PUT '[save.as("dde3.xls")]';

     PUT '[quit()]';

Where can I find a complete list of these Excel commands?

--
Paige Miller
Super Contributor
Posts: 339

Re: Excel commands via DDE

Posted in reply to PaigeMiller
PROC Star
Posts: 8,150

Re: Excel commands via DDE

Posted in reply to PaigeMiller
Super User
Posts: 23,346

Re: Excel commands via DDE

I think the commands are all those in the link Art provided, but those don't really encompass all the options anymore because some new ones are available with the new versions of Office...

Valued Guide
Posts: 2,191

Re: Excel commands via DDE

Posted in reply to PaigeMiller

if you can find it you'll discover real documentation of the functions excel accepts through DDE in

excel 4 function reference

(iirc)

Super Contributor
Posts: 273

Re: Excel commands via DDE

Posted in reply to PaigeMiller

Paige,

The last reference about DDE and excel is from Guam and Hadden at Nesug2013

"EXCELing in DDE:  Unlock Useful Tools for Processing Excel®  "

http://www.lexjansen.com/nesug/nesug13/151_Final_Paper.pdf

Inside you have a link to a complete list zip file

and also some technics linked to office14        

HTH

Andre

PROC Star
Posts: 8,150

Re: Excel commands via DDE

Ask a Question
Discussion stats
  • 6 replies
  • 2042 views
  • 0 likes
  • 6 in conversation