+ Reply to Thread
Results 1 to 3 of 3

Macros to check if any cell value has changed before closing workbook

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    Hartford, Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    2

    Post Macros to check if any cell value has changed before closing workbook

    I need to write macro to check if any cell value has changed in the workbook and present a message if it has, when closing the workbook? any ideas how can it be done? Any help is appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: Macros to check if any cell value has changed before closing workbook

    From my understanding, if no changes had been made to a workbook, then the user would not receive a Save prompt when closing the workbook.

    Alternately you could use the worksheet change event to add a YES to a specified cell, then use the workbook before close event to check to see if a YES is found in the cell.

    You would have to use the Workbook Open event to clear the YES though.

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    Hartford, Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macros to check if any cell value has changed before closing workbook

    Thanks a lot for your reply. This idea is enough for me to go ahead with the macro.

+ 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