ankita.sethi
Board Regular
- Joined
- Apr 27, 2011
- Messages
- 58
Hi,
I have a report to prepare where I am giving a command button. The code behind the command button inserts a sheet, edits that and deletes it finally (It is meant for printing something).
However, I want to protect the report and do not allow user to edit anything.
One way I thought was to run the code for removing protection before running the command button code, and finally put the protection back through code only. However, this is making the process really slow somehow.
Can someone please advice me a more efficient method?
I have a report to prepare where I am giving a command button. The code behind the command button inserts a sheet, edits that and deletes it finally (It is meant for printing something).
However, I want to protect the report and do not allow user to edit anything.
One way I thought was to run the code for removing protection before running the command button code, and finally put the protection back through code only. However, this is making the process really slow somehow.
Can someone please advice me a more efficient method?