prajul89
Active Member
- Joined
- Jul 9, 2011
- Messages
- 404
Hi All,
I have a workbook which i opened ReadOnly.
Now When User tries to close workbook, a macro runs in beforeClose Event.
Here I want thisworkbook to be close without saving anything.
I tried Adding
But it starts the never ending Loop and excel Hang...
I can't use application.enableevents either because i can't turn it to true after thisworkbook.close line.
Is there any way to do this?
I have a workbook which i opened ReadOnly.
Now When User tries to close workbook, a macro runs in beforeClose Event.
Here I want thisworkbook to be close without saving anything.
I tried Adding
Code:
Thisworkbook.close false
But it starts the never ending Loop and excel Hang...
I can't use application.enableevents either because i can't turn it to true after thisworkbook.close line.
Is there any way to do this?