Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Update links in multiple workbooks simultaneously

I have about 80 different workbooks all linked to the same data in one source
file, and a second "summary" workbook that's supposed to summarize the
results of the 80 workbooks. I'd like to change the data in the source file,
then open the "summary" file and have all the changes pushed through and
updated in each of the 80 workbooks. But, how can I do that without having to
open each one, choose "update links," and save the changes, 80 times over &
over? Any suggestions will be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Update links in multiple workbooks simultaneously

A very simple macr will do the trick. If all the files are in the same
directory than change Folder as required.

Sub UpdateBooks()

Folder = "C:\Temp\"
FName = Dir(Folder & "*.xls")
Do While FName < ""
If ucase(FName) < "SUMMARY.XLS" Then
Set Bk = Workbooks.Open(Filename:=Folder & FName)
Bk.Close Savechanges:=True
End If
FName = Dir()
Loop
End Sub


"dano" wrote:

I have about 80 different workbooks all linked to the same data in one source
file, and a second "summary" workbook that's supposed to summarize the
results of the 80 workbooks. I'd like to change the data in the source file,
then open the "summary" file and have all the changes pushed through and
updated in each of the 80 workbooks. But, how can I do that without having to
open each one, choose "update links," and save the changes, 80 times over &
over? Any suggestions will be much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Update links in multiple workbooks simultaneously

Joel, you're the man! Thanks a million, it works like a charm.

"Joel" wrote:

A very simple macr will do the trick. If all the files are in the same
directory than change Folder as required.

Sub UpdateBooks()

Folder = "C:\Temp\"
FName = Dir(Folder & "*.xls")
Do While FName < ""
If ucase(FName) < "SUMMARY.XLS" Then
Set Bk = Workbooks.Open(Filename:=Folder & FName)
Bk.Close Savechanges:=True
End If
FName = Dir()
Loop
End Sub


"dano" wrote:

I have about 80 different workbooks all linked to the same data in one source
file, and a second "summary" workbook that's supposed to summarize the
results of the 80 workbooks. I'd like to change the data in the source file,
then open the "summary" file and have all the changes pushed through and
updated in each of the 80 workbooks. But, how can I do that without having to
open each one, choose "update links," and save the changes, 80 times over &
over? Any suggestions will be much appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Workbooks from multiple links Workbooks TimJames Excel Worksheet Functions 1 December 15th 07 03:34 PM
links in multiple workbooks ChristyR Excel Discussion (Misc queries) 3 September 26th 07 08:56 PM
Links auto update on some workbooks but not others Tasza Excel Worksheet Functions 1 October 25th 05 01:04 AM
How to update multiple links in multiple spreadsheets followin mo. Andy Excel Worksheet Functions 0 January 20th 05 04:51 PM
Can you update links between workbooks without them both open? Nicolle K. Excel Discussion (Misc queries) 1 January 7th 05 07:39 PM


All times are GMT +1. The time now is 08:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"