DATA Step, Macro, Functions and more

Save message in DDE

Occasional Contributor
Posts: 10

Save message in DDE


In one of my macro using DDE function to import MS EXCEL spread sheet into SAS, there is always a window pop up in openned EXCEL application which asks me to save (or not) the openned Excel file. This interrupts my process automation. Could any of you tell my how to avoid that (it was not the case in early version of EXCEL if I remember well)? BTW, I am using EXCEL 2007 and SAS 913.

Many thanks in advance

Not applicable
Posts: 0

Re: Save message in DDE

Posted in reply to Snow_Belssas
Use the DDE directives that instruct Excel to "Save", or "SaveAs" the open Excel sheet. Your problem is that DDE uses .COM which has a number of issues including security and deprecation of features associated with it. Alan Churchill is the guru in this area and in his blog he examines some of the problems and proposed solutions. Try

Kind regards

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation