ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Don't update Links (https://www.excelbanter.com/excel-programming/291981-dont-update-links.html)

Robin Clay[_3_]

Don't update Links
 
Greetings !


I have this:

Private Sub Workbook_Open()
Application.AskToUpdateLinks = False


....and yet, when I open the file, I STILL get asked
whether I want to "Continue" or to "Edit Links"

How can I prevent this box from popping up?


RClay AT haswell DOT com

Tom Ogilvy

Don't update Links
 
the prompt is run before any macro. So you would have to set this before
opening the workbook. If you do set it to false, it updates the link, it
just doesn't ask.

If you are using xl2002 or later, there is an uption under Edit=Links that
allows you to control this.

In earlier versions, if you don't want to be prompted and don't want to
update the links, you need open a helper workbook that uses code to open the
actual workbook. You can then use the updatelinks argument to suppress the
link update

workbooks.Open filename:=Actualworkbook.xls, updatelinks:=0

--
regards,
Tom Ogilvy

"Robin Clay" wrote in message
...
Greetings !


I have this:

Private Sub Workbook_Open()
Application.AskToUpdateLinks = False


...and yet, when I open the file, I STILL get asked
whether I want to "Continue" or to "Edit Links"

How can I prevent this box from popping up?


RClay AT haswell DOT com





All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com