ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Opening file in VBA with Questions (https://www.excelbanter.com/excel-programming/412420-opening-file-vba-questions.html)

iashorty

Opening file in VBA with Questions
 
I have a file that has links to other workbooks. In my code when I have this
file open a window comes up and asks whether or not to update. I want it to
always update. How do I write this code?

So far I have:
Path = Sheet4.Range("B22")
Workbooks.Open Filename:=Path


Tim Williams

Opening file in VBA with Questions
 
Have you tried

Workbooks.Open Filename:=Path, UpdateLinks:=True

?
Tim


"iashorty" wrote in message
...
I have a file that has links to other workbooks. In my code when I have
this
file open a window comes up and asks whether or not to update. I want it
to
always update. How do I write this code?

So far I have:
Path = Sheet4.Range("B22")
Workbooks.Open Filename:=Path





All times are GMT +1. The time now is 12:09 AM.

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