ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   UpdateLinks Popup on Workbooks.Open (https://www.excelbanter.com/excel-programming/438298-updatelinks-popup-workbooks-open.html)

AFSSkier

UpdateLinks Popup on Workbooks.Open
 
I have a refreshable Excel template file that is linked to data imported from
Access.

When I open the file using a Macro button with a Workbooks.Open sub, I get
an Update Links popup.

But, when I open the file directly from the network folder or shortcut, I
don't get the Update Links popup.

I have a temporary Workaround with an UpdateLinks:=False. But I would like
to resolve the issue without a bandaid.

Sub OpenCat()
Workbooks.Open "\\Network_Path\Category_template.xlsx", UpdateLinks:=False
'UpdateLinks:=False cmd is like clicking CONTINUE to leave links as
is.
ActiveWorkbook.SaveAs Filename:="C:\WINDOWS\Temp\Category.xlsx"
'This saves the temp file on End-users PC, leaving original
template as is.
End Sub

--
Thanks, Kevin


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com