thunderfoot
Board Regular
- Joined
- May 28, 2004
- Messages
- 229
Using EXCEL 2003 and have a Sub Autpen() macro routine run when a file is opened (with Macros Enabled) which among other things has a routine that disables Copy/Paste using code :-
Is there any Code I can add to the Sub Autpen() macro which will disable the 'X' in the top right corner of the Window displaying the file?
Code:
Application.CommandBars("Edit").Controls("Cut").Enabled = False
Application.CommandBars("Edit").Controls("Copy").Enabled = False
Application.CommandBars("Edit").Controls("Paste").Enabled = False
Application.CommandBars("Edit").Controls("Paste Special...").Enabled = False
Is there any Code I can add to the Sub Autpen() macro which will disable the 'X' in the top right corner of the Window displaying the file?