PC Review


Reply
Thread Tools Rate Thread

Cannot Update Links ??

 
 
dim
Guest
Posts: n/a
 
      25th Apr 2008
Hi, I have one workbook (StartupBook.xls) opening another (MyProgram.xls) so
that I can use the 'RunAuto Macro' command when a 'Start' button located ona
userform is clicked in StartupBook.xls.

When the start button is clicked I open a number of workbooks, followed by
finally MyProgram.xls which contains links to the ones opened before it. This
allowed MyProgram.xls to update its links fine when all the workbooks were in
a pre-determined folder.

However, I recently changed all the VBA paths to variation of the
ThisWorkbook.Path & .... command to allow the program to go anywhere on the
hard drive.

I have moved the program folder 'MyFolder' to a new location on the hard
drive. It seems to run fine, apart from the opening sequence upon the Start
button being clicked, when the MyProgram.xls file has a problem updating its
links.

Below is the code of the Start button macro. Can anyone tell me why my links
are no longer updating?

It is only 2.xls, 3.xls, 4.xls and 74.xls that the problem is with. The
excel error box says they have an "undefined or non-rectangular name".

Please Help!!! :-(

Private Sub CommandButton1_Click()
Me.Hide
ActiveWorkbook.Save
Application.ScreenUpdating = False
Workbooks.Open ThisWorkbook.Path & "\Data\2.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\3.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\4.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\74.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\1.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\70.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\69.xls"
Workbooks.Open ThisWorkbook.Path & "\Data\71.xls"
Workbooks.Open ThisWorkbook.Path & "\Main\MyProgram.xls", UpdateLinks:=3

ActiveWorkbook.RunAutoMacros xlAutoOpen
ThisWorkbook.Close
Unload Me
End Sub

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit - Links - Change Source doesn't update all links Thomas McLain Microsoft Excel Crashes 2 1st Oct 2008 05:30 PM
Update links box gives Continue or Edit Links dialog =?Utf-8?B?S2FyZW5G?= Microsoft Excel Misc 0 18th May 2007 01:17 PM
Suppress Update Links dialog AND don't update links Paul Martin Microsoft Excel Programming 5 3rd Aug 2006 01:14 AM
How to disable update links in ppt. (without breaking links) =?Utf-8?B?U2hhcm1h?= Microsoft Powerpoint 2 16th Dec 2005 06:06 PM
Can we update links automatically somehow after making a copy of a sheet with links? StargateFanFromWork Microsoft Excel Discussion 4 8th Dec 2005 09:37 PM


Features
 

Advertising
 

Newsgroups
 


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