+ Reply to Thread
Results 1 to 3 of 3

Closing Excel via vba

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    Shirland, IL
    MS-Off Ver
    Excel '00 & '03
    Posts
    51

    Closing Excel via vba

    Ok so my code below works fine except for when the user selects yes to the prompt and cancel in the save box. When that happens excel attempts to close and crashes. I want it so if the user says yes initially and then hits cancel the sub will cancel and the workbook will stay open. Thanks!

    Please Login or Register  to view this content.
    Last edited by fire_water; 06-18-2009 at 08:20 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Closing Excel via vba

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-22-2009
    Location
    Shirland, IL
    MS-Off Ver
    Excel '00 & '03
    Posts
    51

    Re: Closing Excel via vba

    That worked beautifully, Thank you much!

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1