In our company, everyone has a personal Excel sheet where they fill in working hours for each customer and project they work on.
The customers and projects are chosen via dropdown. Customers/projects are altered from time to time and have to be changed in everyone's separate Excel sheet.
I created a file where the person responsible for the working hours can type in the name of the person who's file has to be checked, the old names of customer and project and the new names for the two. The VBA code then opens the corresponding workbooks and checks the file for matches and replaces them.
If a file which has to be checked is in use by a different user, it can't be opened and altered.
I want to find a way to recognize if a file is in use, if yes skip said file and then put the filename in a column "file in use" in my sheet.