I want the workbook to be saved and closed at the same time WITHOUT any prompts. Is this possible?
I'm a newbie and can't find the right code.
Your help is much appreciated (soory for my poor english).
I want the workbook to be saved and closed at the same time WITHOUT any prompts. Is this possible?
I'm a newbie and can't find the right code.
Your help is much appreciated (soory for my poor english).
Please Login or Register to view this content.
Last edited by Bishonen; 10-26-2012 at 05:17 PM.
If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.
Thanks, this does the trick.
Additional question: same situation but then Excel must be closed. I tried Application.Quit but nothing happens:-(
is the proper way to go.Please Login or Register to view this content.
Please attach the workbook where application.quit doesnt do the job and I'll be glad to look into it.
Hi, Bishonen,
might be reduced toPlease Login or Register to view this content.
or shorterPlease Login or Register to view this content.
according to VBA-Help of Close(SaveChanges, Filename, RouteWorkbook).Please Login or Register to view this content.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks