Need to lock cells (protect from editing) after entering values in google spreadsheet

Multi tool use
Need to lock cells (protect from editing) after entering values in google spreadsheet
I need to lock the cells on a spreadsheet after entering values (password protect the cells).
I am able to write a macro on excel but that goes off when its uploaded to google spreadsheet.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.