Hello All,
I have an excel which has a Insert macro to insert blank records in the selected row.
Eg: At B11, I should give 2 to insert 2 blank records.
This is working fine as expected. Now, I need to lock the Amount column in the sheet. When I lock it and run the macro. It throws an error.
It is because, we cannot insert blank row on a sheet which has a column locked.
Can anyone please suggest if I can display a message as ' Unlock the Amount' instead of the error in the file. This will help users to understand the reason of the error.
Attached a sample file of the functionality. 'test' is the password to unlock the column.
Any suggestions are much appreciated.
Thanks in advance.
Bookmarks