LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default An obsure application or object defined error problem

One of my users has reported a pretty obscure problem. Here's the deal:

- They're running my Excel add-in under Excel 2002 on a Citrix server.

- The code executes a statement like the following:

Set tempBook = Workbooks.Open(tempName, , True, , , , True, , , , , ,
False)

where tempname is a fully qualified name (e.g., "c:\docume~1\ ...").

- Normally this works just fine.

- However, if the user does a File | Open from Excel, chooses the "T" drive
(which apparently Citrix maps back to their local "C" drive), navigates to a
text file and chooses that file which causes Excel to run it text import
wizard (which seems to work just fine).

- If they then switch back my application's workbook and do something which
causes the above Workbooks.Open to run, it now fails with an Application or
Object defined error (1004).

- I've inspected the contents of tempName in both the working and failing
cases and its the identical text string and I've verified that in both cases
the .xls file pointed to by tempName exists in the appropriate directory.

- Perhaps one small clue is that if I drop off the trailing False argument
(AddToMRU) then the Open always works! But then my code fails downstream
the next time it tries to Open a file ... and besides I really don't want
this opened file added to the MRU list.

Yikes!

Thanks for any suggestions.

josh


 
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
Runtime error 1004- application defined or object defined erro Novice Excel Programming 0 February 6th 06 09:34 PM
Runtime error 1004- application defined or object defined erro Novice Excel Programming 1 February 6th 06 09:33 PM
Runtime error 1004- application defined or object defined erro Jim Thomlinson[_5_] Excel Programming 0 February 6th 06 09:29 PM
error: ActiveCell.Offset(0, -1).Select = Application-defined or object-defined error -[::::Shamran::::]- Excel Programming 7 June 7th 05 02:14 PM
Macro Run-time Error 1004 Application Defined or Object Defined Error Anddmx Excel Programming 6 June 9th 04 03:40 PM


All times are GMT +1. The time now is 12:09 PM.

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

About Us

"It's about Microsoft Excel"