Hello, I am using Excell for a personal project to learn a bit of Excell and VBA.
The Personal project is a simple TTRPG automated character sheet and I use protection just so the players don't mess with the cells that are used only for logic purposes such as the racial trait tables tables and etc. I want to hide the second worksheet called "GeneralTables", so the players can't see the tables, and the second page of the "Character Sheet" worksheet, so that players can share their screen without revealing their Character secret details that are on the second page of the Character sheet.
I have a ActiveX checkbox that protects and Unprotects the worksheets using the following VBA code, but the cells marked as Hidden are still visible. Is there an option to make them hide even if I am using the userinterfaceonly flag?
PHP Code:
Private Sub CheckBox1_Click()
If CheckBox1.value = True Then
Worksheets("Character Sheet").Protect "1234", userinterfaceonly:=True
Else
Worksheets("Character Sheet").Unprotect "1234"
End If
End Sub
Bookmarks