Locking non-blank cells of all worksheets before closing the workb

A

antonis

Dear all, I am looking for a code that will lock all the non-blank cells
(within all the worksheets of a workbook) once the workbook is closed. I
imagine that, upon closing the workbook, the code will search for the
non-blank cells and will turn the protection from "Unlocked" to "Locked".
What would this code be?

Thank you!
 
Top