Stop updating links after certain date

Hoff88

New Member
Joined
Jan 6, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a folder for each month of the year, in each folder is a Workbook for each day of the month. The daily workbooks are all linked to a Master workbook that I use and update certain information everyday. Once a day is past, e.i. Febuary 6th. I do not want that workbook for Feb 6th to update the values from the Master workbook when it is opened.
I know I can easily choose not to update the links when I open it, but the issue is that there are 20+ people that need access to the files and I know someone is going to update the link along the way.

I assume this is accomplished through VBA. Any and all replies are appreciated.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
i'm not big into linking workbooks so I can't help you in that regard. however, how are your users updating the links? via pushing a button? selecting an option on the interface menus? if it is the latter, could write VBA code that blocks their effort based on the date that's applicable to the file. if your files are all named in such a way that they are easily identifiable as pertaining to a certain date, then you could actually use the literal file name in your conditional statement where you check for the appropriate date. Sort of like the concept that SEO developers use when they grab the <header> text of a webpage and use its content to create an SEO URL, with hyphens (-) separating the words in the <header> text.
 
Upvote 0
i'm not big into linking workbooks so I can't help you in that regard. however, how are your users updating the links? via pushing a button? selecting an option on the interface menus? if it is the latter, could write VBA code that blocks their effort based on the date that's applicable to the file. if your files are all named in such a way that they are easily identifiable as pertaining to a certain date, then you could actually use the literal file name in your conditional statement where you check for the appropriate date. Sort of like the concept that SEO developers use when they grab the <header> text of a webpage and use its content to create an SEO URL, with hyphens (-) separating the words in the <header> text.

Upon opening a workbook, you are prompted to answer if you would like to update the links or not. Now this should itself should be enough to prevent updating of the links, but with 20+ people referring to this workbook, someone is bound to update the links and save it. so without selecting a pushing a button or selecting an option on an interface I'm not sure what you're suggesting would work, or maybe I'm not understanding it correctly. And yes, the workbooks will all be named according to the day they are for e.i. Feb 6th, or something of the like, I am open to renaming them to whatever format that would be necessary.

Does anyone know of a way to break a link after a specific date or how to create a button with that will break the link of a specific link in a work book?
 
Upvote 0
do you know how to write VBA code? let me know, and if you don't, I can give you a coding example of what I was talking about earlier.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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