Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Don't Update Links to Ext Workbooks using VBA

Hi,

Is there a piece of code that I can use within the Workbook_Open event that will automatically say "don't update links"?

I wish to stop the AskToUpdateLinks coming up, but can't use the Application.AskToUpdateLinks=False, since I don't want the links updated.

Thanks for your help!

SuperJas.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Don't Update Links to Ext Workbooks using VBA

From a previous post:

xl2002 added an option for this under
Edit|links|startup prompt

But before that you have to let individual users decide for themselves--and they
can choose to be prompted or to not to be prompted, but have the links update.

In earlier versions, you could use a helper workbook that opens the workbook
with the links. That code in that helper workbook could specify how to open the
workbook with links.

Kind of like:

Option Explicit
Sub auto_open()
Workbooks.Open Filename:="c:\my documents\excel\book2.xls", UpdateLinks:=0
ThisWorkbook.Close savechanges:=False
End Sub

(see VBA's help for all the options for updatelinks.)

But the problem is that the linking question comes before any VBA code (in the
workbook with links) is executed.)

That's why the helper workbook is useful.

SuperJas wrote:

Hi,

Is there a piece of code that I can use within the Workbook_Open event that will automatically say "don't update links"?

I wish to stop the AskToUpdateLinks coming up, but can't use the Application.AskToUpdateLinks=False, since I don't want the links updated.

Thanks for your help!

SuperJas.


--

Dave Peterson

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
update links to password protected workbooks. pjbur2005 via OfficeKB.com Excel Discussion (Misc queries) 1 May 5th 09 12:35 PM
Update workbook links without opening all workbooks Steve Vincent Excel Discussion (Misc queries) 1 January 6th 09 11:14 PM
Update links in multiple workbooks simultaneously dano Excel Discussion (Misc queries) 2 October 8th 08 09:14 PM
Links auto update on some workbooks but not others Tasza Excel Worksheet Functions 1 October 25th 05 01:04 AM
Can you update links between workbooks without them both open? Nicolle K. Excel Discussion (Misc queries) 1 January 7th 05 07:39 PM


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