I have a sheet containing numerous columns. Some of the columns contain data that I don't want the user to see. Obviously I can simply hide the respective columns but this also means the user can easily unhide them.
Is there a way to create a password protected macro (I don't know if macro's can be password protected?) that allows specific columns to be specified which can be hidden when run, e.g. columns F, I, K, L and J and then a second macro (if this is the best option) to unhide the columns.
This would need to allow for the fact that the user 'could' insert their own additional columns into the sheet, so ideally the column references to be hidden/unhidden would need to automatically update in the macro (if this is even possible) to accommodate this.
Obviously any data in the hidden columns would need to be sorted along with the rest of the sheet, should the user decide they want to sort by any of the visible columns.
Many thanks
Bookmarks