A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open and Close a Workbook to Update Links



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2008, 03:22 PM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 138
Default Open and Close a Workbook to Update Links

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
  #2  
Old July 7th, 2008, 03:28 PM posted to microsoft.public.excel.misc
Ron de Bruin
external usenet poster
 
Posts: 2,861
Default Open and Close a Workbook to Update Links

Hi Adam

Try to add this argument in the workbooks.open

UpdateLinks:=3



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


" m wrote in message
...
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


  #3  
Old July 7th, 2008, 07:51 PM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 138
Default Open and Close a Workbook to Update Links

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

"Ron de Bruin" wrote:

Hi Adam

Try to add this argument in the workbooks.open

UpdateLinks:=3



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


" m wrote in message
...
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



  #4  
Old July 7th, 2008, 07:55 PM posted to microsoft.public.excel.misc
Ron de Bruin
external usenet poster
 
Posts: 2,861
Default Open and Close a Workbook to Update Links

Hi Adam

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


" m wrote in message
...
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

"Ron de Bruin" wrote:

Hi Adam

Try to add this argument in the workbooks.open

UpdateLinks:=3



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


" m wrote in message
...
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.