Application.Quit still wants to save

P

phreud

I have a close button with the following code:


Code
-------------------
Private Sub btnQuit_Click()
For Each w In Application.Workbooks
w.Saved = True
Next w

Application.Quit
End Su
-------------------


If i fiddle around enough in my UserForm, changing values, I still ge
asked if I want to save changes when I press the quit button. If
don't do alot of changes, it closes allright.

How can the entire workbook just get saved "sometimes"?!?

Thanks!

/ phreu
 
Top