LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Run time error 1004 - cannot insert object

Depends how you are getting the file name.
If these are hard coded, maybe the drive mapping is different on the other
PC ?

NickHK

"diceman" wrote in message
. ..
Hi,

I have an excel file that contains hyperlinks to files. I get the

hyperlink
address and then embed that file into the excel file. (The files are text
files.)
All the files and the excel file are on a network drive.
When I run the macro from my PC everything works OK.
When I try it from a different PC I get the 1004 error on the command that
embeds the files:
ActiveSheet.OLEObjects.Add(Filename:= _
HyperlinkAddress, _
Link:=False, DisplayAsIcon:=True,

IconFileName:="packager.exe",
_
IconIndex:=0, IconLabel:="").Select

Any reason why it should behave in a different way when you activate the
same macro in the same file from a different PC?

Thanks,
Rakefet



 
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
Run Time Error 1004: Application or Object Defined Error BEEJAY Excel Programming 4 October 18th 06 04:19 PM
Run Time 1004 Error: Application or Object Difine Error BEEJAY Excel Programming 0 October 17th 06 10:45 PM
Run-time error '1004': Method 'Cells' of object _Global failed Fran D[_6_] Excel Programming 3 May 12th 06 04:44 PM
Run-time error '1004': Method 'Range' of object '_Global' failed Neild Excel Programming 0 February 12th 06 11:43 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM


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

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"