• Can You Prevent A Workbook Closing? (Excel 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Can You Prevent A Workbook Closing? (Excel 2000)

    Author
    Topic
    #421974

    Hi All

    I’ve had a quick search through the forums but can’t find anything related to this problem, and I don’t even know if it’s possible.

    What I want to do is prevent a user from closing a workbook if certain conditions aren’t met (i.e. the values of 2 cells don’t match). Is this possible?

    Viewing 0 reply threads
    Author
    Replies
    • #960709

      Yes. You can capture the ThisWorkbook BeforeClose (and ThisWorkBook BeforeSave) event, and set Cancel to True if your conditions are not met.

    Viewing 0 reply threads
    Reply To: Reply #960712 in Can You Prevent A Workbook Closing? (Excel 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel