rgrovier
New Member
- Joined
- Sep 13, 2006
- Messages
- 15
I have an Excel file that acts as an input form for a mailmerge operation. The Excel file contains an Auto-run VBA program designed to clean-up entries made by the previous user of the file. The worksheet is protected to prevent tampering in all cells except those designated for user input. However, the protected cells are the result of a query that I would like to refresh when the Auto-run VBA program is run upon opening the file.
I can get the query to refresh if I remove the protection but I can't get the VBA program to remove the protection, update the query and then restore the protection.
Any thoughts would be greatly appreciated.
I can get the query to refresh if I remove the protection but I can't get the VBA program to remove the protection, update the query and then restore the protection.
Any thoughts would be greatly appreciated.