Auton open code

not very bright dave

Board Regular
Joined
Dec 20, 2004
Messages
244
I am opening a file, which when opened, asks me if I want to update links. I need some code to automatically say no. Is this possible? Any ideas?

Thanks in advance

Dave
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
you can set the argument 'updatelinks' to zero when using the open command eg

Code:
Workbooks.Open "ANALYSIS.XLS" updatelinks = 0
 
Upvote 0
Where do I put this code? When I put it in the workbook code of the workbook I'm trying to click 'no to autoupdate' in, it just asks me if I want to open the current workbook again! Any ideas?

Thanks

Dave
 
Upvote 0
If you are opening the file manually then I don't know. The code I posted is for use when you are opening the file via VB.

also
Under tools>options>Edit tab there is an option for
'ask to update automatic links'

I have never used it but that may be the answer - try it and see
 
Upvote 0

Forum statistics

Threads
1,203,045
Messages
6,053,188
Members
444,644
Latest member
keepontruckinc4

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