qosafrench.blogg.se

Permantly disable links in excel
Permantly disable links in excel




permantly disable links in excel

If that didn’t solve your problem, here are a few more suggestions. ' Break the first link in the active workbook. Dim astrLinks As VariantĪstrLinks = wbNew.LinkSources(Type:=xlLinkTypeExcelLinks) The code below breaks the first link in the file. You can do this manually, or in your VBA code.įor example, if you’re doing this in a macro, activate a specific sheet, unprotect it, then break the link, and protect the sheet again. So, if you’re having a problem breaking a link, check the active sheet for protection. If the active sheet is protected, you can’t break a link in the file. The sheet with the link wasn’t protected, but that didn’t matter. The link was still showing in the list, but I couldn’t change it or break it.Īfter several head scratching moments (or hours, I can’t remember), I finally noticed that someone (probably me) had protected the sheet that was currently active. When the Edit Links window opened, the Break Link button was dimmed out. So, to troubleshoot the problem, I tried to break the link manually. Recently, I ran into a problem – the Break Link command wasn’t working in the macro, even though it had worked nicely for several months. By breaking the links, the formula results change to values, and the file can be sent to someone who doesn’t have the original source file. I use this technique in Excel programming sometimes, when creating copies of workbooks. Then come back to the Edit Links command, and click OK.

permantly disable links in excel

When the confirmation message appears, read the dire warnings, and make a backup, if you haven’t already done that. To break the link to the other file, click the Break Links button. That opens the Edit Links dialog box, and shows a list of the links in the workbook. In the file with the link, I can go to the Ribbon’s Data tab, and click the Edit Links command, Here is the workbook with a cell that is linked to a different workbook. If you have a problem breaking links in Excel, this article might help fix that. Cell B4 in the worksheet at the right is linked to cell B7 in the sheet at the left. In the screen shot below, there are two files.






Permantly disable links in excel