It seems like you are facing an issue with Excel online not recognizing your Office script for leaving a column of cells unlocked and editable after password-protecting the sheet. The cells that should be unlocked are giving an error message, “This sheet is protected. Some parts may be view-only and can’t be changed.” This issue can occur due to permission issues or syncing problems <sup>123</sup>.
To resolve this issue, you can try the following steps:
- Check if the desktop folder is synced with OneDrive. If it is not synced, you can try syncing it again.
- Check if the desktop folder is selected for backup in OneDrive settings. If it is not selected, you can select it and try syncing it again.
- Check if the desktop folder has the necessary permissions. You can try giving your user account full control over the desktop folder <sup>1</sup>.
- Try resetting OneDrive and then restarting it. This can help clear the cache and resolve any syncing issues <sup>3</sup>.
If the above steps do not resolve the issue, you can try reaching out to the OneDrive support team for further assistance.
I hope this helps! Let me know if you have any other questions.