I have a spreadsheet with various formulas that I would like to protect from others editing. If I use tools protection, it's annoying because once I apply the protection, I have to unprotect before I can edit it again.
I would like to use VBA to enter in a script that reads the user name (environment) variable "username" and based on users I enter in, will allow editing of certain cells on various worksheets within a workbook.
I've searched all day for code that would work for me...but haven't been successful yet.
Thanks for your help!
I can email spreadsheet to you if that will help.
I would like to use VBA to enter in a script that reads the user name (environment) variable "username" and based on users I enter in, will allow editing of certain cells on various worksheets within a workbook.
I've searched all day for code that would work for me...but haven't been successful yet.
Thanks for your help!
I can email spreadsheet to you if that will help.