Open workbook without update all linked information

W

Warren

I am writing a macro which opens and closes a series of workbooks. One of
the workbooks contains formula that have links to other workbooks. So, the
macro stops when it tries to open this workbook and ask if I want to update
all linked information.

Is there a code that specifically tells Excel to open workbooks and if it
contains links, do not update all the linked information?

I think this works:
Application.DisplayAlerts = False
But this one surpresses all alerts.

Thanks in advance

Warren
 
T

Tom Ogilvy

I don't believe displayalerts works in this case. What does work is the
second argument to the workbooks.open method

workbooks.open filename:="Whatever", UpdateLinks:=0
 
W

Warren

Thanks Tom.

....and you are right, DisplayAlert does not work...

Regards,
Warren
 

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

Top