View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Merlynsdad Merlynsdad is offline
external usenet poster
 
Posts: 37
Default Command works from debug but not normally

I'm a problem closing a workbook without saving it. I'm closing another
workbook, then the current workbook with the following code in Private Sub
workbook_close():

Workbooks("real1.xls").Close False
Me.Close False

When I step through the code or run the code from the debug toolbar this
works. But when I use File Exit or the X, it asks whether or not I want to
save both files. I don't want to save either. What am I doing wrong?