Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default DDE Startup Hangs

Hello,

I have the following code in my script:
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 happen in excel.

Normally this works fine, but on one specific computer (windows xp with SP1
and excel 2002) it hangs. When excel is started manually the program works
fine and all statements are executed.

Can somebody help me with this problem?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default DDE Startup Hangs

Give this a shot - works in 2000

Dim APEXCEL As Object
Set APEXCEL = CreateObject("EXCEL.APPLICATION")
APEXCEL.Visible = True
APEXCEL.Workbooks.Open ("d:\userdata\book1.xls")

AppActivate APEXCEL
....update links

-----Original Message-----
Hello,

I have the following code in my script:
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 happen in excel.

Normally this works fine, but on one specific computer

(windows xp with SP1
and excel 2002) it hangs. When excel is started manually

the program works
fine and all statements are executed.

Can somebody help me with this problem?
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Hangs Linda Excel Discussion (Misc queries) 2 October 4th 05 04:36 PM
Worksheet hangs Robert Excel Discussion (Misc queries) 2 March 14th 05 06:21 AM
DDE startup Hangs amac Excel Programming 0 November 10th 04 02:37 PM
DDE startup hangs amac Excel Programming 0 November 10th 04 02:36 PM
ddeinitiate Hangs Ann Excel Programming 0 September 7th 04 03:17 PM


All times are GMT +1. The time now is 07:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"