简体   繁体   中英

VBA: Prevent Excel from updating links on open

I have a workbook with multiple external links,

I don't want these to update when the workbook is opened, by me or any other user.

I have tried to achieve this with the simple work book open command below:

Private Sub Workbook_Open()
    Workbook.UpdateLinks = xlUpdateLinksNever
End Sub

Am I missing something ?

Put the code in the ThisWorkbook:

在此处输入图片说明

Private Sub Workbook_Open()
    Me.UpdateLink = xlUpdateLinksNever
End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM