Automatically Update the linked document

pickache

New Member
Joined
Apr 20, 2004
Messages
7
Hi everyone,

I m quite a beginner in VBA and I was wondering if any of you can help me.

I v created a macro in excel to acess other excel files. when I launch my macro it then access the files to retreive the data needed.
Those files are linked to other files and then I have the excel prompt asking if I want to update or not these links.

Do you by any chance know a way to automatically answer yes (or no) to this and then avoiding the prompt.
Its a quite important matter cuz I cant do any modification on the second level files (the ones open with my macro).

Hope its clear enought :p (sorry if not :confused: )

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
hiya pickache, welcome to the board!

you must set the files (individually i believe). Tools -> Options -> Calculation (tab) -> Workbook options -> ensure 'Update remote references' & 'Save external link values' are both checked. that should do ya!
 
Upvote 0
If you are using the Workbooks.Open method, the UpdateLinks argument can be set to 0:

Workbooks.Open FileName:="ABC.xls", UpdateLinks:=0
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,746
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top