Does Workbooks.open update links in the cells?

Ceeyee

Board Regular
Joined
Feb 2, 2011
Messages
164
Hi,

If I use Workbooks.open in VBA to open another workbook which has some links grabbing data from external source such as from the internet through an API.

Does that workbook being opened update the cells or it won't (if yes, then how to make sure it does NOT)?
Thanks.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I think if you have a code in Workbook.Open declaration then it will run as it open.
If you dont want if to run automatically then remove any macro inside the Workbook.Open
 
Upvote 0
I don't have anything in the Workbooks.Open except for the path and file name.

So the cells and formulas in the opened workbook will not be updated when the book is being opened right?
 
Upvote 0
Not necessarily..
Because you are talking about a formula in the cell to be opened.
Supposed you have in a cell =TODAY() then as it open it will update to today's date automatically upon opening even without a macro in Workbook.Open
 
Upvote 0
The only solution I have in mind is to put your formulas into a Macro/VBA code then only if you want it to update then run the Macro.
It that case you will not have any formula in the sheets so even if it opens the workbook no update will be made unless you run the Macro.
I don't know if others have their own idea how to control it but as for me it will work.
Thanks
 
Upvote 0
Thanks for the suggestion but I have thousands of those cells with many different links so it's not feasible to put them all in macros...
 
Upvote 0
Actually not all formaulas will automatically update as you opens a workbook as long as you did nothing to a cell that will trigger the formulas you have.
Only those like =TODAY(), =NOW() in a cell always update as you open.
All formulas related to changing depends on current date and time.
If you don't want to update this date as you open then only those formulas need to be in macro.
 
Upvote 0
You could disable calculation before you open the workbook and specify the updatelinks:=false argument for workbooks.open
 
Upvote 0
Maybe it relates to application.volatile?
If the functions in my cells are not volatile then they won't update right?
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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