How to auto response the dialog

G

Guest

Hello,

When I open a Excel workbook, the dialogue will appear everytime:

----
The workbook you opened contains automatic links to information in another
workbook. do you want to update this workbook with changes made to the other
workbook?

To update all linked information, click Yes.

To keep the exist information, click No.

(Yes / No)
----

Since I open them by macro, and the source reference workbooks have been
opened beforehand. Surely, I will answer (Yes). But everytime I have to make
manual reponse, pretty annoying!

How to answer the dialogue by VBA statments.

Many thanks!
 
J

John Green

Use the UpdateLinks argument.

Workbooks.Open Filename:= "C:\Book2.xls", UpdateLinks:=3
 
D

David

=?Utf-8?B?bXlCYXNpYw==?= wrote
When I open a Excel workbook, the dialogue will appear everytime:

Of course you could always make a global change to your Options.
Tools|Options|Edit tab, uncheck 'Ask to update automatic links'
 
G

Guest

Dave, I opened the sending workbook. But now that I solved that problem.

John, David, both your suggestions works fine, the problem solved.

Many thanks to you. :)
 

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