A family of Microsoft word processing software products for creating web, email, and print documents.
Charles,
In order to limit the users who can use SaveAs I plan to capture and test the user's windows login (Environ("username")) and block users in code where they are not in a list of approved users. However my problem is that whatever I try if you select SaveAs from the File menu it does not call the VBA FileSaveAs code. If I can find how to make it call the FileSaveAs code I should be alright.
Background is that I have created a Form in word using active X controls and have a "Save Form" button in the document when pressed the VBA code in the FileSave procedure validates that the user has completed the form correctly then saves the form to the users "Downloads" directory with a specific file name based on information entered. However some of our users go to extraordinary lengths to try and not do what they are supposed to e.g. using File SaveAs and I need to stop them.
All I need to find out is how to make the VBA code in FileSaveAs fire if the user tries to use File Menu -> SaveAs in the document.