Charles Bushby
New Member
- Joined
- Aug 10, 2005
- Messages
- 42
I have a workbook with code that disables cut copy and paste which works fine. On opening the code disables these functions and on closing it enables them. However if I have two workbooks open with this code and I shut one of the workbooks it then enables cut copy and paste in the remaining workbook. I don't want this to occur.
What should I put in the Workbook_BeforeClose event that only enables the code to apply to the active workbook and not other ones that would remain open?
What should I put in the Workbook_BeforeClose event that only enables the code to apply to the active workbook and not other ones that would remain open?