Prevent Automatic Link Updating/Changing

jbennett01

New Member
Joined
Apr 25, 2018
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
I created a spreadsheet to be a search tool for our client directives and instructions. Each entry in the spreadsheet has a link to the actual document. To ensure the security of the data from unauthorized or accidental changes, I upload a copy of the master file to our local network for people to download to their local "machines." The macro that serves as the search engine will update the data as needed.

However, in testing on those other "machines" the links change. In the master document they are this: "file://\\XXXXXXX\dept\MainFolder\FULLPATH"

Once downloaded they become: "c:\users\name\FULLPATH"

Above, I have put the word machines in quotes since the people who have tested this are remote users so they log into the network using a virtual environment. I am also remote but I log directly into my computer at the office. I have looked for solutions here and elsewhere and tried what I could find without success. We are using Office2016. Under Options-->Advances-->When calculating this workbook the current selections are:
  • "Update links to other documents" is unchecked
  • "Set precision as displayed" is unchecked
  • "Save external link values" is checked
Using the Workbook Open event, I have this:

VBA Code:
    With ThisWorkbook
        '.UpdateLinks = xlUpdateLinksNever
        .UpdateRemoteReferences = False
    End With

I tried UpdateLinks first but that did not help so I remmed it out and added the UpdateRemoteReferences line. The search engine works fine. It is just the links that are the problem. Any suggestions would be helpful.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,225,763
Messages
6,186,896
Members
453,384
Latest member
BigShanny

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top