PC Review


Reply
Thread Tools Rate Thread

Automatically Update Workbook Links as part of AutoOpen Macro?

 
 
dim
Guest
Posts: n/a
 
      22nd Dec 2007
Hi folks,

Hope everyone is keeping well. :-)

I'm looking to incorporate code into my auto-open macro so that the error
message shown here does not appear


I want the 'Update' option to be automatically selected when the workbook
opens.

Does anyone know how I can do this?

Thanks, and have a Merry Christmas! :-)


 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      23rd Dec 2007

You could open the workbook from another workbook using the
Open method with the UpdateLinks argument set to 3...
'--
Workbooks.Open "MySpecialWorkbook.xls",UpdateLinks:=3
ActiveWorkbook.RunAutoMacros xlAutoOpen
'--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
("rows to repeat at bottom" now available)



"dim"
wrote in message
Hi folks,
Hope everyone is keeping well. :-)
I'm looking to incorporate code into my auto-open macro so that the error
message shown here does not appear:


I want the 'Update' option to be automatically selected when the workbook
opens.
Does anyone know how I can do this?
Thanks, and have a Merry Christmas! :-)


 
Reply With Quote
 
dim
Guest
Posts: n/a
 
      24th Dec 2007
Thanks Jim, I think that will do it!

I just noticed that the previous link to a screencap wasn't working right,
but it seems you knew what I was talking about anyway. :-)

Here's the link in case anyone in future is viewing this question.
http://img142.imageshack.us/img142/8...ellinksqu9.jpg
 
Reply With Quote
 
dim
Guest
Posts: n/a
 
      24th Dec 2007
Hi again!

This is more of a question for general curiosity and learning purposes...

....with the code you gave me, what would be the other numerical values in
UpdateLinks as opposed to 3, and what does each of them do?

Thankyou very much again for any responses.
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      24th Dec 2007

Just look in the Excel VBA help file for "Open Method"...

0 Doesn't update any references
1 Updates external references but not remote references
2 Updates remote references but not external references
3 Updates both remote and external references
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(11 add-ins for direct download - includes sort by color)




"dim"
wrote in message
Hi again!
This is more of a question for general curiosity and learning purposes...
....with the code you gave me, what would be the other numerical values in
UpdateLinks as opposed to 3, and what does each of them do?
Thankyou very much again for any responses.
 
Reply With Quote
 
dim
Guest
Posts: n/a
 
      24th Dec 2007
Thanks again Jim.
Merry Christmas! :-)

"Jim Cone" wrote:

>
> Just look in the Excel VBA help file for "Open Method"...
>
> 0 Doesn't update any references
> 1 Updates external references but not remote references
> 2 Updates remote references but not external references
> 3 Updates both remote and external references
> --
> Jim Cone
> San Francisco, USA
> http://www.realezsites.com/bus/primitivesoftware
> (11 add-ins for direct download - includes sort by color)
>
>
>
>
> "dim"
> wrote in message
> Hi again!
> This is more of a question for general curiosity and learning purposes...
> ....with the code you gave me, what would be the other numerical values in
> UpdateLinks as opposed to 3, and what does each of them do?
> Thankyou very much again for any responses.
>

 
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
Automatically update external workbook file path in macro Razorboy Microsoft Excel Programming 0 24th Feb 2009 01:09 PM
Automatically update external workbook file path in macro Razorboy Microsoft Excel Programming 0 16th Feb 2009 09:57 AM
How do I set up a macro to automatically update links upon openin. =?Utf-8?B?TWlrZUpveW5lcg==?= Microsoft Excel Programming 1 6th Jan 2005 07:43 PM
Same workbook links will not update automatically Henry Microsoft Excel Discussion 0 15th Jun 2004 08:45 PM
Hide prompt to automatically update links on workbook opening DannySS Microsoft Excel Programming 1 10th Jun 2004 02:25 PM


Features
 

Advertising
 

Newsgroups
 


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