DATA Step, Macro, Functions and more

Save message in DDE

Reply
Occasional Contributor
Posts: 10

Save message in DDE

Dears

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

Ssas
N/A
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 http://savian.blogspot.com

Kind regards

David
Ask a Question
Discussion stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation