franksirvent
Programmer
Hi there
I have a sheet which is protected with the following code which run at startup:
Worksheets("ExporttoExcel2").Activate
ActiveSheet.Protect UserInterfaceOnly:=True
ActiveSheet.EnableAutoFilter = True
this works great as I don'r want to let people change the data, while at the same time I need to be able to filter.
The problem is that I also want to allow people to widen or narrow columns as they like (for printing, viewing etc) BUT because sheet is protected, they cannot.
How can I allow that while mantaining the protection ?
thanks in advance
I have a sheet which is protected with the following code which run at startup:
Worksheets("ExporttoExcel2").Activate
ActiveSheet.Protect UserInterfaceOnly:=True
ActiveSheet.EnableAutoFilter = True
this works great as I don'r want to let people change the data, while at the same time I need to be able to filter.
The problem is that I also want to allow people to widen or narrow columns as they like (for printing, viewing etc) BUT because sheet is protected, they cannot.
How can I allow that while mantaining the protection ?
thanks in advance