I've written some code to be executed right before I close my workbook however I'm having trouble in the way things get processed
what happens:
1. I close the workbook
2. my coding in Sub Workbook_BeforeClose gets executed
3. Excel asks me if I want to save changes ( yes, no, cancel )
what I'd like to happen:
1. I close the workbook
2. Excel asks me if I want to save changes ( yes, no, cancel )
3. If I select yes or no my coding gets executed and Excel is closed
4. If I select Cancel my coding doesn't get executed and I return to Excel
can anyone show me how to set this up properly?
thx. for any help! =)
what happens:
1. I close the workbook
2. my coding in Sub Workbook_BeforeClose gets executed
3. Excel asks me if I want to save changes ( yes, no, cancel )
what I'd like to happen:
1. I close the workbook
2. Excel asks me if I want to save changes ( yes, no, cancel )
3. If I select yes or no my coding gets executed and Excel is closed
4. If I select Cancel my coding doesn't get executed and I return to Excel
can anyone show me how to set this up properly?
thx. for any help! =)