I have a workbook that displays lots of data over several sheets. The workbook is designed so that there is a macro and/or user form for all functions, data entry, and data manipulation. Plain and simple, I don't need or want the user to be able to click anywhere in the workbook except for the command buttons I've placed along the top of the page (in row 1) that run the macros.
While I've never learned how to use VBA to protect, run macro, and then re-protect, this is the first method that comes to mind, and I'm willing to learn how to do it. My biggest fear with this, is how cumbersome it will be to find every spot in this complex program where a macro needs the ability to manipulate data on a worksheet where protection needs to be cleared first, then re-protected.
Is there a better way to do this? The user just needs to have authority to click the command buttons, and enter text/select option buttons or combo boxes within the user forms that pop up. The macros will always need the ability to add/modify data, and sort. If possible, I don't even want the user to be able to hide/unhide or resize rows or columns without using my macros to do it. And lastly, if there's a good way to secure the macro code from mischievous coworkers who think they know how to code, that'd be excellent too.
This is my first major project and it has been months of coding thousands of lines. I don't know much about protecting sheets, and I don't want to learn the wrong way first. Thanks!
While I've never learned how to use VBA to protect, run macro, and then re-protect, this is the first method that comes to mind, and I'm willing to learn how to do it. My biggest fear with this, is how cumbersome it will be to find every spot in this complex program where a macro needs the ability to manipulate data on a worksheet where protection needs to be cleared first, then re-protected.
Is there a better way to do this? The user just needs to have authority to click the command buttons, and enter text/select option buttons or combo boxes within the user forms that pop up. The macros will always need the ability to add/modify data, and sort. If possible, I don't even want the user to be able to hide/unhide or resize rows or columns without using my macros to do it. And lastly, if there's a good way to secure the macro code from mischievous coworkers who think they know how to code, that'd be excellent too.
This is my first major project and it has been months of coding thousands of lines. I don't know much about protecting sheets, and I don't want to learn the wrong way first. Thanks!