Update link answer = no

  • Thread starter Thread starter Guest
  • Start date Start date
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)
 
Can you change the code to not update links:

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

(see VBA's help for more info)
 
You can set the UpdateLinks parameter to False when you open the workbook..

Application.Workbooks.Open Filename:="D:\TEMP\sample.xls", UpdateLinks:=False
 
I found myself the answer. There is a command:

, UpdateLinks:=False that I have to put just after the filename:=
"mybook.xls".
 
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


Back
Top