Hi All,
Hoping someone can help me sort this issue or suggest a better way to do it.
I have Public variables declared in a module which are then set through a Workbook_Open event checking which column the userid appears in and setting the access level to either 1, 2 or 3.
When a member of staff makes a change to a sheet a Workbook_SheetChange event checks the access level of the employee and then decides what to do with the change (could be nothing or write to sheets x,y,z etc)
Every now and then Excel will drop the value of the access level (returning it to 0) and the sheet stops functioning.
I thought about placing the check within the Workbook_SheetChange event but the problem with that is there are several other things and other modules that also rely on that access level information so it really needs to be set on workbook open.
I dont really want to have to write the code in every module and have thought about saving the value to a random cell on a sheet which is then cleared on close but is there a better way to do this or stop the excel dropping the value.?
Any help would be appreciated.
Hoping someone can help me sort this issue or suggest a better way to do it.
I have Public variables declared in a module which are then set through a Workbook_Open event checking which column the userid appears in and setting the access level to either 1, 2 or 3.
When a member of staff makes a change to a sheet a Workbook_SheetChange event checks the access level of the employee and then decides what to do with the change (could be nothing or write to sheets x,y,z etc)
Every now and then Excel will drop the value of the access level (returning it to 0) and the sheet stops functioning.
I thought about placing the check within the Workbook_SheetChange event but the problem with that is there are several other things and other modules that also rely on that access level information so it really needs to be set on workbook open.
I dont really want to have to write the code in every module and have thought about saving the value to a random cell on a sheet which is then cleared on close but is there a better way to do this or stop the excel dropping the value.?
Any help would be appreciated.