+ Reply to Thread
Results 1 to 3 of 3

How to prevent workbook being closed

  1. #1
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    How to prevent workbook being closed

    HI,

    I display a message box in Workbook before Close event.
    If user click yes I shouldnt close the workbook if NO i should close the workbook.

    In the Yes part, How can I stop excel from closing the workbook.
    If i dont write any ocde it automatically closes in the event.

    Any help??
    Last edited by Ranjani; 04-02-2009 at 10:21 PM.

  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: How to prevent workbook being closed

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

  3. #3
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: How to prevent workbook being closed

    Worked!! thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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