I want code to lock rows if Date in first coulumn is <Today(). and protect witha password. Incase if i want to edit any content for the past dates, then i have to able to do by unprotecting the sheet.
I want code to lock rows if Date in first coulumn is <Today(). and protect witha password. Incase if i want to edit any content for the past dates, then i have to able to do by unprotecting the sheet.
Hello udaybrown7,
Please see if the thread below, can help you with some ideas of how to solve your issue.
http://www.excelforum.com/excel-prog...el-code-2.html
Regards.
Please consider:
Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
this is not helpful, i want a VBA Code
You could use a Worksheet_Change macro such as
Of course, in order to be able to unlock your spreadsheet again, you would have to be the one who knows the password.Please Login or Register to view this content.
Does that help?
Mike 1001
_________________________
Let's keep trying, one day we'll succeed!
This variant could be used to unlock all cells when you type the spreadsheet password into any unlocked cell.Please Login or Register to view this content.
That cell woudl be cleared immediately.
Sorry, I forgot to re-enable events in the previous code.Please Login or Register to view this content.
Thanks a lot , code is working..
But it is unlcoking hidden and locked formulas in column B and D. This columns has to be locked irrespective of any date
Then please try the Code like this.
Please Login or Register to view this content.
Thanks . this code is working
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks