Update link answer = no

G

Guest

Hi, I just wanted to automatically say no to a msgbox asking if I want to
update the links in a workbook opened by a macro.
I cannot Select Edit-->Link, because the workbook opened is changed by
someone I don't know and my macro have just to treat his/her file.

Thanks!
Daniel (Brazil)
 
D

Dave Peterson

Can you change the code to not update links:

Set wkbk = Workbooks.Open(Filename:=SomeFileNameHere, UpdateLinks:=0)

(see VBA's help for more info)
 
G

Guest

You can set the UpdateLinks parameter to False when you open the workbook..

Application.Workbooks.Open Filename:="D:\TEMP\sample.xls", UpdateLinks:=False
 
G

Guest

I found myself the answer. There is a command:

, UpdateLinks:=False that I have to put just after the filename:=
"mybook.xls".
 
G

Guest

Thanks Adriano, I've also found myself.

Vergel Adriano said:
You can set the UpdateLinks parameter to False when you open the workbook..

Application.Workbooks.Open Filename:="D:\TEMP\sample.xls", UpdateLinks:=False
 

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

auto link update 1
removing link message 1
How to auto response the dialog 4
Update links = no 1
suppress popup message 4
UPPER CASE macro shortcut key anomaly 4
Capture Update Links event VBA 2
update Link 2

Top