VBA - Supress message when sheet opens

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,291
Office Version
  1. 365
Platform
  1. Windows
I open a new book with external links as part of a macro.

Therefore I get a This workbook contains..... message.

Code:
Workbooks.Open Filename:= _
        "\\tt-serv\company\Spares\Spares Orders\Spares Order Log.xls", _
        UpdateLinks:=0
    Range("A30").Select
    Selection.End(xlDown).Select

I assume the updatelinks:=0 should work - But doesn't?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
This didn't work - I still get the same message.

Using XL2000 if it makes any difference?
 
Upvote 0
It worked when I tried it:

Code:
Sub Test()
    Application.AskToUpdateLinks = False
    Workbooks.Open Filename:= _
        "C:\Users\Andrew\Documents\MrExcel\FileLinks\Book2.xls", UpdateLinks:=0
End Sub
 
Upvote 0
sorted - just deleted it and started again -


Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,222,675
Messages
6,167,534
Members
452,118
Latest member
djjamesp

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