View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Opening .XLS In VBA: Getting "Do You Want To Save..." Prompt...

Or

myss.workbooks(1).close savechanges:=false

And you shouldn't see the prompt.

PeteCresswell wrote:

What am I missing?


Sorry for trashing the NG... I think I found the obvious:

2990 With mySS
2991 .Application.DisplayAlerts = False
2992 .Workbooks(1).Close
2993 .Quit
2994 .Application.DisplayAlerts = True
2999 End With


--

Dave Peterson