Hello all,
I have a tracker file opened with user form login and showing/hiding individual sheet for each user. This file needs to be shared. The original code is using .protect and .unprotect to execute macros and vba changes on one of the sheets, which does not run on the shared file. Getting "Run-time error 1004: Method protect of object failed". I got the hint to use UserInterfaceOnly to make it work on shared file, but can not make it work successfully or find a solution online. The file is protected on open and close. Any help how to fix this and where to apply UserInterfaceOnly is greatly appreciated.
I have a tracker file opened with user form login and showing/hiding individual sheet for each user. This file needs to be shared. The original code is using .protect and .unprotect to execute macros and vba changes on one of the sheets, which does not run on the shared file. Getting "Run-time error 1004: Method protect of object failed". I got the hint to use UserInterfaceOnly to make it work on shared file, but can not make it work successfully or find a solution online. The file is protected on open and close. Any help how to fix this and where to apply UserInterfaceOnly is greatly appreciated.