Don't update Links

R

Robin Clay

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
 
T

Tom Ogilvy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update Links Stopping Workbook_Open Routine 1
Shell "mkdir" 2
Copying files 2
Update Link Continue prompt 2
Duplicate ToolBar Buttons 6
AskToUpdateLinks not working 1
Status Bar 1
Place a SHELL Window 3

Top