Open and Close a Workbook to Update Links

A

adambush4242

I have a file that is linked to another file on the same shared drive. When
I open the file, the links to the other file don't update. However, when I
open the other file the links DO update. I wanted to just open the file I'm
linked to and then close it using a macro, but this doesn't work either. I'm
using the following code:

Workbooks.Open "Linked File Path"
ActiveWorkbook.Close (True)

When the file opens, through this code, all the links seem to update but
then as soon as it's closed the linked cells revert back to Ref errors. Any
suggestions to how I can get around this issue?

Thanks

Adam Bush
 
A

adambush4242

Ron,

I just realized that I use the indirect function and that the source file
has to be open for this to work. However, I can't have the source file open
at all times, only periodically. Is there any way to get around this?

Thanks

Adam Bush
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top