I am trying to make a macro run while the worksheet is protected.
The program is to autofilter by color. When you just filter the cell manually, it will work even if the worksheet is protected. However, when I recorded a macro and assigned a "button" to it, the following occured:
"You cannot use this command on a protected sheet. To use this sheet, you must first unprotect...etc "
Does anyone know how to autofilter when the worksheet is protected?
The program is to autofilter by color. When you just filter the cell manually, it will work even if the worksheet is protected. However, when I recorded a macro and assigned a "button" to it, the following occured:
"You cannot use this command on a protected sheet. To use this sheet, you must first unprotect...etc "
Does anyone know how to autofilter when the worksheet is protected?
Comment