Jul 22 2020 05:47 AM
Hi,
We use Excel for preparing budget files. These files then get collated in MS Power BI for group wide analysis.
One issue we have is that users can sometimes paste links from spreadsheets on their desktops into the budget files. This naturally causes problems when other users open them.
Is there any way to prevent external links from being inserted? I've searched in Data Validation and Protect Sheet but haven't found anything suitable.
Jul 22 2020 06:53 AM
Jul 22 2020 07:14 AM
@NikolinoDE , the issue isn't hyperlinks as such, its cells pointing at external workbooks. So cells with values like the below
='[Desktop Budget File]Project Budget'!$I$23
or
=C://users/userA/desktop/'[Desktop Budget File]Project Budget'!$I$23
Jul 22 2020 07:44 AM
Mar 30 2021 08:45 AM
I am having this same issue. We use a standard template that users download and complete. The file has embedded logic, data validations and defined pivots. Many users are are saving / copying the data into the template that results in data corruptions, link issues and content enablement warning. The handling of the file seems to pickup every storage location along the way. This is degrading the effectiveness of this tool.
This issue is not Hyper Links but the embedded references to name ranges that get corrupted.
How can this be prevented?
Mar 30 2021 10:00 AM
Got another way to stop hyperlinks, found on the internet.
Break all external links with VBA code
If you want to break all of the external links, both the ok and error links, the following VBA code can help you to break them all.
1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
Sub BreakLinks()
'Updateby20140318
Dim wb As Workbook
Set wb = Application.ActiveWorkbook
If Not IsEmpty(wb.LinkSources(xlExcelLinks)) Then
For Each link In wb.LinkSources(xlExcelLinks)
wb.BreakLink link, xlLinkTypeExcelLinks
Next link
End If
End Sub
Then press F5 key to run the code, and all of the external links in the whole workbook have been broken.
Hope I was able to help you with this info.
Nikolino
I know I don't know anything (Socrates)
Jun 09 2021 12:33 AM
Jun 09 2021 12:55 AM
To help protect your security and privacy, Microsoft Office is configured by default to block external content—such as images, linked media, hyperlinks, and data connections—in workbooks and presentations. Blocking external content helps to prevent Web beacons and other intrusive methods that hackers use to invade your privacy and lure you into running malicious code without your knowledge or consent.
Thank you for your understanding and patience
Nikolino
I know I don't know anything (Socrates)
Jun 09 2021 01:30 AM
Question: The problem is not breaking external links. I just wanna prevent my users from using external links.
You could also do it with the Protection Worksheet.
First:
First you have to select the cells with the hyperlinks,
then right mouse button, format cells, click on Protection above, clicked the Locked box, OK.
After that:
By going to Review, protect sheet. New window opens. Protect worksheet and contents of locked cells check the box.
Select locked cells, check box Empty.
So nobody can press on the hyperlink, see yes, press on it no. At least that's how it is in Excel 2016.
Additional Info:
Description of link management
Thank you for you all understanding and patience
Nikolino
I know I don't know anything (Socrates)
Feb 13 2024 01:42 PM
As per original query. We are trying to PREVENT links to other workbooks to OCCUR to begin with
NOT TRYING TO
– fix links on a document
– Remove links
– Manage some areas or cells of a document.
– Find procedure for a single operation
WE WANT To
- Find the GLOBAL setting that that prevents copying data from one workbook to another and creating a link to the ordinal document when pasting to another. ALWAYS.
In years of using Excel, the "link to other spreadsheet feature" has never been useful. I understand how that could be nice, but it's the exception, not the what's needed by default. Surely there is a way to just turn it OFF somewhere?.
Where?
Thanks.
Feb 14 2024 02:18 AM
So far, I can understand, you are seeking a way to prevent Excel from automatically creating links to other workbooks when copying data from one workbook to another. This feature can indeed be inconvenient in certain situations.
To prevent Excel from creating links to other workbooks by default, you can adjust the settings in Excel to disable this behavior.
Here is how you can do it:
By disabling this option, Excel should no longer create links to other workbooks by default when copying and pasting data. Keep in mind that this change will apply globally to all Excel workbooks on your computer, so you will not need to adjust settings for each individual workbook.
Feb 14 2024 12:07 PM
Thanks NikolinoDE, yes, the idea is to have a global setting that stop linking workbooks. I can totally see how one can use that feature, but for many users, it just seems to add a level of frustration when links they don't know exist get broken and formulas suddenly stop working.
I would never have found that setting on my own: the labelling just does not seem to be related, so thanks for pointing to the right direction, I'll see if that does the trick.
That said for those on mac (Excel 16.82 on macOS Sonoma), here where to find it.
1 - In the top bar menu, on the left, roll down the Excel menu > Preferences
2 - Click the Edit icon (Top center)
3 - In Second row section (Cut and Paste Options), uncheck the first option: Cut, copy and sort inserted objects with related cells
Apr 10 2024 11:16 AM
@Arkinien @NikolinoDE I've recently noticed this issue both in the desktop version and online. I have unchecked the box for "Cut, copy, and sort inserted objects with their parent cells", but there is no change for me. Copy/paste is still inserting references to the source workbook.
I've noticed that any formula that references an object (a table or sheet) in the workbook will create a reference to the original workbook when I copy and paste from one workbook to another. I've used the source workbook as a template for the target workbook, so the named tabel and sheets exist in the target.