Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Excel hangs up when closing with macro

Status
Not open for further replies.

Johnomill

Technical User
Dec 19, 2001
19
NL
I have created a button so I can save and quit my active workbook. When I do this, Excel hangs up. In Explorer I can see that a new file is created with a strange name. When I run the macro step by step, this problem doesn't occur.
I tried different things s.a. closing with application.quit, Workbook(Name).Save, Workbook.Close Savechanges:=true, but all this results in the same problem.
Suggestions are very welcome...

Jan
 
Hi Jan,

Have you tried

Activeworkbook.close true

Brans
 
Brans,

I tried this also and this doesn't work either. I used this methods in other workbooks and I can't figure out why it fails this time...

Best regards,

Jan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top