Hey you guys!

I just made a database file using excel,
This file is used by several users.

I would like to create a macro that locks all cells to the users that are using the ifle in a "read-only" mode, but I can't figgure out hoew to do it,

Kind regards!
Thanks ahead.