Links To Other Workbooks Breaking When The Files Are Replaced?

Jun 12, 2013

I have a master workbook (that I will call 'A') with a number of links to other workbooks ('B' to 'Z'). 'A' is designed to collate and display the data held in workbooks 'B' to 'Z'. The links all work fine until the 'B' to 'Z' workbooks are updated with new data, at which point, the links break with a "Error: source not found" error.

This is caused by the process by which we update the 'B' to 'Z' workbooks. We have to delete them, and replace them with new files, that have the same name.

Is there any VBA code or something that I could run that will update the links to pick up the new files?

View 2 Replies


ADVERTISEMENT

Links Breaking From Two Workbooks

Dec 18, 2013

For three years I've created a workbook (A) that is dependent on another workbook (B) I upkeep. When I open (A), I Edit Links and update the location to my newest weekly file to map from (B). For my 2014 (A) book, I did the same process, but when I update the values, all the links break. Only when I open up (B) with (A) will the values appear.

As a short term solution, I saved (A) with the values in there and disabled the prompt to update values, so others can see the data. This isn't a feasible long term solution since updates will be made weekly, and not everyone will want to open up (B) just to update (A).

View 9 Replies View Related

Breaking Links To Some Workbooks

Jan 14, 2010

I have a consolidation workbook with many tabs. Each tab has many links to 8 data workbooks.

I would like to eliminate the links in all of the tabs of the consolidation workbook to half of the data workbooks.

I am using Excel 2007.

I tried Data/Edit Links, and selected one workbook, but when I hit Break Link, it broke the links to ALL the data workbooks.

View 9 Replies View Related

Excel 2007 :: Updating Workbooks Containing Links To Other Files

Sep 12, 2010

I and my organization have many files created using Excel 2003. I have now upgraded to Excel 2007 and soon I discovered a huge problem.

- When opening a file using Excel 2007 that was created with Excel 2003 the links in that file is automatically updated even though I get the edit links dialog and choose not to update.

After searching for a solution on the Internet I realize that this is a problem that exist when Excel opens a file created in an earlier version. Microsoft has no solution.

I need to be in control of which links that are updated and not.

Going back to excel 2003 is not an option. Saving the source files in Excel 2007 is not an option.

View 5 Replies View Related

Breaking Links And UsedRange

Jun 23, 2006

I am working on a project that involves copying data from one sheet to another, then breaking all links to the original sheet. This part of the program is working fine. The problem comes when I try to put borders around the used range of cells in the new sheet. I want the border to only go down to the last row that contains text in column A.

Currently, the program is putting a border around all the cells that have text plus those that originally contained links (all the links are not always used). So even though I have removed the links from the new sheet, usedrange still includes these extra rows. This is no good for printing, since the links spill over to page two and I dont want that second page to print if there is no data.

So I basically need to know how to fix the problem with usedrange, or instead need a way of specifying the last row that contains text in column A. I have done a search on this and tried a number of different things, however none have worked so far.

View 9 Replies View Related

Refreshing Lined Cells And Breaking Links

Oct 25, 2011

I would like to refresh all external links to other xl files (on a network drive) and break all links

I have a code like this:

Code:
For Each l In ActiveWorkbook.LinkSources
Workbooks.Open Filename:=l, updatelinks:=1, ReadOnly:=True
ActiveWorkbook.Close False
Next l

For Each l In ActiveWorkbook.LinkSources
ActiveWorkbook.BreakLink l, xlLinkTypeExcelLinks
Next l

It seems to be working, but if i go step by step (f8) it updates values but sometimes after closing the source workbook and updating next one, the previously updated values disappear...

I cannot open all files because there are many of them and they are like 40mb each.

There are no defined names in the file, except print_area

View 2 Replies View Related

Excel 2010 :: Breaking Data Links To Another Workbook

Oct 18, 2012

I am running a macro-enabled Excel 2010 file, and there is a link to another workbook that pops up every time I open it asking if I want to update. I have searched formulas and pages, and can't find where it's linking from. I searched the VBA module I've been working in, and I can't find the link. When I click Data->Edit Links->Break Links and confirm, nothing happens. It still shows up as linked, and still prompts me to update next time I open it. I'd really like to get this data link severed.

View 3 Replies View Related

Update Links Across Workbooks

Jun 6, 2007

I have a Vlookup in a shared workbook looking in another shared workbook for the data I want. I open the file and click "Update Links" but I then get the following message box:

"This workbook contains one or more links that cannot be updated.
-To change the source of links, or attempt to update values again, click Edit Links.
-To open the workbook as is, click Continue.

I know this message is trying to tell me it can't find my links, but the path/workbook/ sheet are correct and the numbers are getting updated. I'm worried the message will deter the other users of this workbook from allowing the use of the vlookup.

View 9 Replies View Related

Several Links To External Workbooks That Cannot Be Found

Nov 15, 2006

I have several links to external workbooks that cannot be found...

I have deleted all Name references that posses a ref#

Also I have tried to change the source to the workbook that I am using, but I keep getting a message that says invalid reference to external workbook! In other words it won't let me change my source

I have several work books that I want to change there source, or even get rid of because I can't update them anyways and I don't think it matters if they are updated!

View 9 Replies View Related

How To Handles Links To Other Files

Nov 19, 2012

I have been having problems lately with excel files on Network drives. I have one file that I created on 11/12/2012. However, on Friday that file showed it had been modified by myself on 11/13/2012. I did not do this. As a note, this file contains macros based on a button that is clicked from a worksheet.

I then copied data from this worksheet into another file, creating a link that I did not know was there with the worksheet and the macro. From the first workbook, I also copied in data collection from two other worksheets, also I believe with a link to the first workbook.

I did a test on the first file this morning and found out you can open a file, make no changes, and close the file. Excel will ask you to save the file. If you say Yes, the file will show being modified with today's date and your userid, even though nothing really changed.

What I am actually trying to find out is that can the original file be altered somehow that will automatically update the linked file? Or, when I open the linked file, do I have to say "YES", I want the updates before the linked file is updated?

There were some questions as to how a value showed up in the link file (or actually ended up being removed) and when I looked at the original file it was also removed. We checked on stability across the network drive but found it to be okay, now we are looking at the link issue.

View 2 Replies View Related

Links To Other Files In Error

Mar 3, 2007


This workbook contains links to other data sources.

*If you update the links, Excel will attempt to retrieve the latest data.

*If you don't update the links, Excel will use the previous information.

Note that data links can be used to access and share confidential information without permission and possibly perform other harmful actions. Do not update the links if you do not trust the source of this workbook.

I've stopped trying to rectify the situation and just click on cancel. So does everyone else. Big mistake. If there is a file that changes from time to time, and you're relying on a link to it to make your data correct, and some one moves or removes it! you get the above message. But you have no idea it's your very important file that has been deleted or moved. And Excel as the message says, uses the last data it had access to.

Is there a way to force Excel to display the #N/A error for the broken link instead of telling the lie? Well really, if the file’s been deleted or moved, Excel has no idea what the true value of the "Link" is and is lying when it puts up that last known value and really doesn't tell you except for that opening message.

Very frustrating, the Bill Of Material was moved and then changed, and my Excel file reported the old value just like that.

I've got a huge file with lots of pages and all sorts of people do lots of things including making links to files that after a while get moved or deleted. I can't chase them all down.

So, is there a way to force Excel to "Crash" and put up an error message in the cell where the link is supposed to be?

View 9 Replies View Related

Get Links To External Files

Dec 6, 2006

I want to link data between two files, which are always in the same position relative to each other, but can be copied to other locations. Here is an example:

D:Job 1SourceJob Info.xls
D:Job 1SlaveClient Form.xls

Cell B1 in Client Form.xls refers to Cell A1 in Job Info.xls. This link is created when both files are open. When Job Info.xls is closed, the reference in Client Form changes to 'D:Job 1Source[Job Info.xls]Sheet1'!$A$1.

Then, I copy and save Job 1 as Job 2. Thus, the second set of folders are: ....

View 7 Replies View Related

How To Update Master Workbook With Links To Other Workbooks

Dec 10, 2009

I have a workbook that links out to numerous other workbooks for current data. After one of the supporting workbooks gets up dated, I return to the master workbook.

Here, I need to see the updated results. The only way that I can find a way of updating the master is to close and save it and then re-open.

Is there a way of updating the master workbook using a macro?

View 14 Replies View Related

Copying Files With Links And Formulas?

Aug 5, 2014

I am working on a file that has multiple worksheets with many links, lookups and formulas; some between the worksheets and some external to another Excel file. The plan is to use this file as a template and copy it over and over with new names. Once I save the file as a new name in a new folder on my network, will I lose all these links, lookups and formulas? Or is there a way to maintain the links or do a global change of the formulas (i.e., the original file name is "TEMPLATE" and the new file name is "PROJECT!1")?

View 2 Replies View Related

List Of Links To All Files In Folder

Mar 14, 2008

We use Excel 2003 and 2007 to track labor data for a field service company. The field tech's complete daily forms and the office staff copy/paste this data into weekly billing worksheets. They use naming conventions to show the jobs and dates in the file name (Daily Labor - Job1 - 031308.xls and Weekly Labor - week ending 3-16.xls. What I would like to do is link the daily data to the weekly forms as they come in. Is there some way to do this when the job names and the dates are always different? Can I tell Excel to expect data files based on the naming conventions as in the Weekly is named "Weekly Labor - Week Ending 3-16.xls so data files named LaborJob1310.csv, laborjob1311.csv would automatically update the weekly sheet? I can put these in a folder and link them, but I don't know how to provide an easy way to do this for the upcoming week.

View 4 Replies View Related

Break Links Of Number Of Workbooks To Master Workbook?

Aug 8, 2013

I have several hundred workbooks which are linked to a master workbook from where the workbooks draw their information. Now I would like to break all the links in all of the several hundred workbooks to this master workbook and retain the information. Is this possible without having to open each workbook individually and break the links via the 'edit links' option?

View 1 Replies View Related

Links To External Workbooks And Server Drive Selected?

Aug 7, 2013

I have a workbook that is being used by many individuals. Within it contains links to an external workbook on a server. Currently the links in the workbook map the server to drive "T".

If a different user maps the same server to another drive letter, I assume these links need to be updated with the drive letter he/she is using for that server?

View 1 Replies View Related

Excel 2013 :: Updating Links To Separate Workbooks

Sep 12, 2013

I'm linking some data from 2 workbooks in the same folder (using excel 2013)

I have a main rota that works great, called "Main Rota.xlsm" I then have a separate basic file called Email Rota.xlsx without all of the bells and whistles of the Main Rota, purley made to email out to staff.

I store both files in the same folder "Site Rota" and it works fine.... until I rename the folder or move the folder to my laptop.

The link in the Email Rota looks like so to start (calling cell A3 from the Main Rota) ='[Main Rota.xlsm]Planning Rota'!A3

As I said it works fine until I move the folder onto my laptop the link then changes to

='D:DesktopSite Rota[Main Rota.xlsm]Planning Rota'!A3

And I have to keep updating the link, I have read online that it isn't supposed to work like this and its supposed to read the file "cleverly" in the same folder ?

I would ideally like to keep both files in the same folder and to update from visa versa without having to update the links if I move it from PC to laptop with I do daily .

View 1 Replies View Related

Macro To Open New Files And Edit Links

May 12, 2014

I'm trying to set up a macro so that: in column C I will see the current (old) links being used by the workbookin column D I will input the new links I want to use in the workbookthe macro will open all those files in column Dthe macro will then replace the current (old) links with those listed in column D

I have the following so far, but something doesn't seem to be working - it gets as far as opening the first new file but doesn't open any others and doesn't change any links (although I've tested the part to change links separately and this seemed to work ok).

Sub linked_sheets()
Dim LinkedBooks As Variant
Dim i As Long
LinkedBooks = ThisWorkbook.LinkSources()
For i = LBound(LinkedBooks) To UBound(LinkedBooks)
Cells(i + 3, 3) = LinkedBooks(i)

[Code] ..........

View 1 Replies View Related

Links To CSV Files, Find And Replace Not Working

Apr 9, 2009

I have a large spreadsheet that has links to CSV files. Every month I need to create a new folder and put the CSV files into that folder, all the CSV files from month to month have the same name for each worksheet.

I'm trying to do Find and replace on the Folder name within the links to change say, February to March so I can just add the CSV files for each month and the spreadsheet will link to the new CSV file in the folder.

I have even tried adding all the February CSV's to the March folder so that when I overwrite the CSV's it will update the master spreadsheet, but it keeps asking me where to look for the folder.
Here is an example of a link:

='\FileservermsbilBRANCH REPORTSBM ReportsFebruary[TItemToDispense@40186 Export Dispensed Item Data-00.CSV]TItemToDispense@40186 Export Di'!BM2

As you can see the folder is named February within the link and I need to replace it with March.

View 9 Replies View Related

Create A List Of Files With Clickable Links

Mar 17, 2006

I've found countless, very useful macros that do 1/3 of what i need. My needs:

1) A macro to look in a set network folder, and generate a list of Excel files, and display them (1 per row, just the file name if possible)

2) Each file name is a hyperlink to open that sheet

3) A macro to look at the file listed above, then list in the column B a value from a set cell. So it would ideally output:

1| RH0018.xls A1CellValue
2| RH0019.xls A1CellValue
3| RH0020.xls A1CellValue

View 2 Replies View Related

Break Links To Files No Longer Needed - 2000

Jan 14, 2009

I have a workbook that archives by date and is saved for 1 month at a time. At the end of the month, all the archived workbooks are moved to another location and are no longer needed.

The problem I am having is I don't know how to break the link between the master and all the saved workbooks. So when I open the master it is looking for the old workbooks in the folder location and they do not exist. How do I break this link?

View 5 Replies View Related

How To Copy Linked Excel And Word Files And Retain Links

May 30, 2013

I have links between Excel files and Word files. I use these files for multiple projects. When I copy them and paste them to a new folder the new files would be linked together. For some reason this has stopped. Now when I copy, the Word file has links to the original document, not to the copied document.

View 7 Replies View Related

Open Set Of Files To Fetch Data Starting From A Master File Where The Links Are Given Using A Loop

Aug 29, 2006

I am trying to open set of excel files to fetch data starting from a master excel file where the links are given using a loop. Some of files given as links are either absent or the link is wrong.

* What is the syntax to find if the link is correct/present

* What is the syntax to find if the file is present in specified location

* What is the syntax to find if the file is password protected to open

* I use error handler to resume the next statement if OPEN statement fails.It works fine inside the loop only for first two files.

For example if the third link is errorneous the error handler fails and RUN TIME ERROR occurs.

View 5 Replies View Related

Allow Contents To Be Replaced

Oct 18, 2007

I am writing some VB code to change a comma separated text to individual columns

Selection.TextToColumns Destination:=Range("O14"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, Other:=True, OtherChar:= _
"*", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), TrailingMinusNumbers:=True

When I run the macro, it asks me if I want to replace the contents of the destination cells. How do I get rid of this prompt? I have tried to clear the contents of the cells prior to running the macro, and have also coded:

Application.AlertBeforeOverwriting = False

but, it still prompts me.

View 2 Replies View Related

Text Replaced With ####

Apr 2, 2008

Using an excel file sent to me to fill out. File is 97-2003. When I type in text it shows up in the cell. However when I click to another cell the text in the previous cell turns to ########. I can double click it and the text reappears. I am unable to print the spreadsheet as I can only see the text when that cell is active...when I move to another cell to enter more text...can't print.

View 9 Replies View Related

Using Text Files Vs Workbooks

Sep 3, 2006

What is the need for storing information in a text file instead of just keeping the data in excel on a worksheet or in vba code.

for example.

I have a file that was given to me that on the OpenWorkbook event runs through an "INI read " procedure. All this does in get certain data from a text file such as:

file paths, rates, file names

Is there any need for this as you could easily store the same information on a worksheet and declare variables in the code.

View 9 Replies View Related

Formula Is Being Replaced By The Data

Dec 29, 2008

I have a "data" sheet that holds information on it and another sheet that has a printable form that uses formulas to extract and calculate the info based on what is entered into the user form. The issue I have having is in a certain number of cells, the formula is being replaced with the result. There are other cells that have the exact same formula and are fine. I can’t figure out why these certain cells are doing this.

There are no control sources overriding the data and I can’t see anything in the code that relates to these cells?

View 9 Replies View Related

Period Replaced By Colon

Oct 3, 2006

Replaced the period with a colon, 8.23 resulted in 8:23. I have since deleted the Add In. Now every time I enter a "." it is replaced by a ":". This happens even when I disable macros on the spreadsheet. I cannot see any VBA code.

View 2 Replies View Related

Compare Data From 3 Workbooks Against 2 Files

Feb 15, 2010

For the past several days I have been attempting to write a macro, which in theory would check the values within a one- sheet workbook (we’ll call it run_list.xls) against the values in two different workbooks (we’ll call these production.xls, development.xls). However after several days I am nowhere closer to solving this problem then I was when I started. I’ve tried different scripts and variations of vlookup, but I have been unsuccessful in tailoring what I have found to meet my needs. So I feel it is time to lie down and scream for a medic.

Here’s some background on the workbooks. The sheets in all three workbooks are set up in the same manner. Cell “A1” contains time/ date, cell “A2” contains a lot#, cells “A3:A99” contain positioning data, and cells “B3:B99” contain serial numbers associated with tubes in the specific positions. The only differences between the workbooks are the sheets in production.xls and development.xls are labeled according to their specific lot number.

What I have been trying to do is to take a value from cell "B3"in run_list.xls and find where that value occurs in column B either of workbooks. When that value was found I wanted to copy cell "A2" from its sheet and paste that value in cell "D3" of run_list.xls. I had also wanted to repeat that those steps for every cell in column B containing a serial #. If a serial number was not found I wanted it to report “Not Found”. There are also times when instead of a serial number a phrase “No Trakmate” is listed. In these cases I had intended to skip these lines.

Also, since production.xls, development.xls are updated frequently their names are also updated with new version numbers ie. Production_v10.xls I had intended to allow the user to choose what files to search in but was unable to figure out how to add a second location.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved