I have a protected file that disables the user to insert and delete rows, instead I embedded a macro code to insert and delete columns with autofill of formulas for newly inserted rows.
Below is the code:
The code unprotects the file first then insert the desired number of rows, then protects it again with the password. I did this to prevent my user to just insert rows without the autofill of formulas.
The problem is when the user select an entire column, the code unprotects the sheet and insert new column and return a runtime error 1004 thus leaving the file unprotected again and the user can now see the formulas for the protected columns.
Just want to ask if there is a possibility in a macro code to disable to select column headings but still allowing selection for row headings.
Many Thanks!
Bookmarks