Ryan:
I'm not a big fan of DDE -- it's old technology -- dating back to Excel 4. I think that Microsoft has moved onto newer technology -- ODBC and OLE-DB and further into .NET and .COM and ADO.
This Microsoft site shows creating a chart using VB and VBA:
http://msdn2.microsoft.com/en-us/library/aa203725(office.11).aspx
When I create output from SAS for Excel, I sometimes use HTML files to send a graph and/or a graph and table to Excel in this fashion. (I also am showing the creation of an RTF file, so you can compare the look in Excel vs the look in Word):
[pre]
options nodate nonumber;
ods msoffice2k path='c:\temp' (url=none)
file='mshtml_ax.xls'
style=sasweb;
ods rtf file='c:\temp\rtf_ax.rtf' style=journal startpage=no ;
goptions reset=all border device=actximg;
proc gchart data=sashelp.shoes;
title 'Vertical Bar Chart';
where region in ('Asia', 'Canada', 'Western Europe');
vbar3d Region / shape=hexagon sumvar=sales;
run;
quit;
title;
proc report data=sashelp.shoes nowd;
title 'Product Information';
where region in ('Asia', 'Canada', 'Western Europe');
column region sales;
define region /group;
define sales /sum;
rbreak after /summarize;
run;
ods rtf close;
ods msoffice2k close;
ods listing;
[/pre]
Of course, we are not creating a "true binary" Excel file with the above code. If you look at the generated file with Notepad, you will see that I am creating an HTML file that Excel knows how to open and how to read the <IMG> tag that's being generated. We are "fooling" the Windows registry into launching Excel when you double click on the file name.
For more help with the design of what you're trying to do, you might consider contacting Tech Support.
cynthia