markkuznetsov1
New Member
- Joined
- Sep 23, 2023
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Hello, this is my first macro based workbook so please answer in laymans terms if possible. This workbook basically is button based that produces a "next number" and spits out date/time and user who clicked as well. It also should copy the produced number to clipboard to manually enter in another program. I have a separate sheet "AuthUsers" to type in users that are authorized to both, use in read/write and click the button. Everything worked flawlessly today until after I tried to protect the sheet. I first protected the auth users column with Review: Protect : Allow Edit Range (also added myself and another user to not require password to change cells). Then I protected the number generating sheet but unprotected after I realized it protects the button as well. The last thing I did before I noticed it would not copy to clipboard is put the protect/unprotect code in VBA. I put that code as a comment to test and it still will not copy. Lots of information but I wonder if the protection is the reason for the copy not to work anymore as it is the only thing I changed.