Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default UpdateLink Problem

Hello All
File1.xlsb is open and has all the code in it.
The code opens File2.xlsb, without issues, and when I try to update a single
link in File2.xlsb the following error error message occurs:
RTError 1004 "Method UpdateLink of object _Workbook failed"
Then the message
"Cannot run the macro 'File2_MyRibbonInitialise'. The macro may not be
available..."

I used the following code for the update:

Application.Calculation = xlCalculationAutomatic '(Just in case it needs to
be on)
Application.Workbooks("File2.xlsb").UpdateLink _
Name:="\\mappeddrive\..\..\..\..\..\linkedfile.xls b", _
Type:=xlExcelLinks
Application.Calculation = xlCalculationManual

The macro 'File2_MyRibbonInitialise' will have already run as File2 opened
(for the ribbon callbacks). The UpdateLink is trying to run it again and
giving the above errors.

Any ideas to prevent this happening.
Thanks


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
UpdateLink error Ray Excel Programming 1 March 6th 07 08:53 PM
UPDATELINK problem alex Excel Programming 0 September 14th 06 02:10 PM
updateLink; files with passwords , VBA help! tp Excel Programming 2 July 13th 05 09:14 AM
UpdateLink Question DS NTE Excel Programming 3 August 20th 04 02:34 AM
UpdateLink Method Ray[_8_] Excel Programming 0 July 10th 03 02:46 PM


All times are GMT +1. The time now is 08:36 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"