Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old May 22nd 06, 04:25 PM posted to microsoft.public.excel.misc
Update Link Question
 
Posts: n/a
Default Updating Links on Excel

I have a spreadsheet that summarizes data from 300+ different workbooks.
Every month a new file is created and we need to update the summary with the
new month data. Is there a better way to update the links on the summarizing
spreadsheet? Currently, we need to edit links and update links for each
(300+) file name. The only thing that changes in the file names is the month.
Thanks!

  #2   Report Post  
Old May 22nd 06, 05:22 PM posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default Updating Links on Excel

Are you speaking about hyperlinks or a formula that directs the cell to get
data out of another file?

"Update Link Question" wrote:

I have a spreadsheet that summarizes data from 300+ different workbooks.
Every month a new file is created and we need to update the summary with the
new month data. Is there a better way to update the links on the summarizing
spreadsheet? Currently, we need to edit links and update links for each
(300+) file name. The only thing that changes in the file names is the month.
Thanks!

  #3   Report Post  
Old May 22nd 06, 06:00 PM posted to microsoft.public.excel.misc
Update Link Question
 
Posts: n/a
Default Updating Links on Excel

I'm speaking of a formula that directs the cell to get data out of another
file.

Thanks.

"Barb Reinhardt" wrote:

Are you speaking about hyperlinks or a formula that directs the cell to get
data out of another file?

"Update Link Question" wrote:

I have a spreadsheet that summarizes data from 300+ different workbooks.
Every month a new file is created and we need to update the summary with the
new month data. Is there a better way to update the links on the summarizing
spreadsheet? Currently, we need to edit links and update links for each
(300+) file name. The only thing that changes in the file names is the month.
Thanks!

  #4   Report Post  
Old May 22nd 06, 06:08 PM posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default Updating Links on Excel

You could do a global change for the information you want to change or you
could put the month into a cell and give it a name. Select the cell and then
INSERT - NAME - DEFINE and give it an appropriate name.

If in your cells, you have something that looks like this:

Y:\folder1\folder2\MONTH.xls
You could change it to include

"Y:\folder1\folder2\" & MONTH & ".xls"

I hope this helps you.

"Update Link Question" wrote:

I'm speaking of a formula that directs the cell to get data out of another
file.

Thanks.

"Barb Reinhardt" wrote:

Are you speaking about hyperlinks or a formula that directs the cell to get
data out of another file?

"Update Link Question" wrote:

I have a spreadsheet that summarizes data from 300+ different workbooks.
Every month a new file is created and we need to update the summary with the
new month data. Is there a better way to update the links on the summarizing
spreadsheet? Currently, we need to edit links and update links for each
(300+) file name. The only thing that changes in the file names is the month.
Thanks!

  #5   Report Post  
Old May 22nd 06, 08:21 PM posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Updating Links on Excel

Assuming your monthly data file names end with mm.xls (eg: 06.xls for june),
apply following macro:

HTH
--
AP

'----------------------------------------------
Sub NewMonth()
Dim sMonthId As String
Dim rDept As Range
Dim aLinks As Variant
Dim iLink As Integer
Dim sOldLink As String
Dim snewlink As String

sMonthId = Format(Range("A1").Value, "mm")
aLinks = ActiveWorkbook.LinkSources(xlExcelLinks)
If Not IsEmpty(aLinks) Then
For iLink = LBound(aLinks) To UBound(aLinks)
sOldLink = aLinks(iLink)
snewlink = Application.Replace( _
sOldLink, _
InStrRev(sOldLink, ".") - 2, _
Len(sMonthId), _
sMonthId)
ActiveWorkbook.ChangeLink _
Name:=sOldLink, _
newname:=snewlink
Next iLink
End If
End Sub
'--------------------------------------------------
"Update Link Question" <Update Link a
écrit dans le message de news:
...
I have a spreadsheet that summarizes data from 300+ different workbooks.
Every month a new file is created and we need to update the summary with
the
new month data. Is there a better way to update the links on the
summarizing
spreadsheet? Currently, we need to edit links and update links for each
(300+) file name. The only thing that changes in the file names is the
month.
Thanks!





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
strange problem with links updates in excel [email protected] Excel Discussion (Misc queries) 1 April 23rd 06 10:59 AM
Excel links in Word snax500 Excel Discussion (Misc queries) 1 April 11th 06 07:36 PM
Dynamic Links Excel 2003 ARW Excel Discussion (Misc queries) 1 January 3rd 06 05:48 PM
Excel 2000 to 2003 update links doesn't work properly any suggest Richard Excel Worksheet Functions 2 September 8th 05 01:06 AM
?? Links Not Updating ?? djm023 Excel Discussion (Misc queries) 3 September 7th 05 02:10 PM


All times are GMT +1. The time now is 07:34 AM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017