View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
amac amac is offline
external usenet poster
 
Posts: 6
Default DDE startup hangs

Hello,

In my program i have the following statements:
excelpath = "c:\msoffice\office\Excel.exe"
Z = Shell(excelpath, 1) ' Start Microsoft Excel.
If Err.Number Then Exit Sub
ExcelLink.LinkTopic = "Excel|System" ' Set link topic.
ExcelLink.LinkItem = "R1C1" ' Set link item.
ExcelLink.LinkMode = 2 'vbLinkManual ' Set link mode.
After those statements other things are done in Excel.


Normally this works fine, but on one specific computer it hangs.
When I manually start excel then the rest of the program is executed normally.

Systeminformation: Windows XP SP1 and excel 2002.

Can somebody help me to solve this problem?