In column A listed are the dates. I want to protect those rows that are < the current date. I am making a ledger using excel and I don't want user to edit data which was encoded prior to the present date. Is this possible?![]()
In column A listed are the dates. I want to protect those rows that are < the current date. I am making a ledger using excel and I don't want user to edit data which was encoded prior to the present date. Is this possible?![]()
Last edited by chrisumali; 12-21-2009 at 02:50 PM. Reason: to be more clear
try This,![]()
Please Login or Register to view this content.
WOW it works thanks man, but if I try to insert password error prompted me. Can you please help me with this, how could I enter password in the code and no one can view that password when they go to vb editor?
Is it possible also to run this macro upon every exit?
Check out going to VBA editor, tools,vbaProperties![]()
Please Login or Register to view this content.
Thanks DAVESEXCEL!
Ok everything is fine up to now, But one more thing. How this macro run every time user exists excel? or a macro with dialog box that will pop-up before closing saying, "You are about to exit, any entries you have made will become final and will not be edited except through authorized adjustments" then pressing ok will run the previous Macro protecting the Cell,
Thanks Good there is you willing to give me a hand...
This statement would not be true, if the workbook was opened again on the same day.
You could activate the code on the workbook_open event .
Or the
Worksheet_selectionChange event.
Right click on the sheet tab and select view code, paste the code there.![]()
Please Login or Register to view this content.
Not tested, just assuming it will work.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks