LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Validation data on exit Excel or save

in the ThisWorkbook module, there are event handlers for Before Save and
Before close. Both of these have arguments which if you set them to false
will cancel the save or the close. Be very careful with this kind of code
however because users get very frustrated when they can not save their work
or exit the program. If it is 5 o'clock and time to go home but they are only
half way done then what are they supposed to do. You are better off to use a
message box to let them know that the spreadsheet is not complete and then
prompt them if they wish to continue saving or exiting.
--
HTH...

Jim Thomlinson


"Atram Informatika" wrote:

How can I validate data when i exit excel aplication or when i save
workbook?
If data not valid then i must display message and do not exit aplication, or
save document.

Thank's



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Excel ask to Save on Exit? JRSNHECI Excel Discussion (Misc queries) 5 December 18th 08 04:10 AM
excel save file upon exit Sarah Excel Discussion (Misc queries) 2 February 9th 07 06:42 PM
Do not propmt to save data on exit Glenn Rathke \(Soft Design Consulting\) Excel Worksheet Functions 3 June 25th 06 05:27 PM
Excel - Prompt to save on exit. Fenris Excel Discussion (Misc queries) 0 November 21st 05 05:11 PM
Excel 2003 Will Not Save On Exit tmyhlfgr Excel Discussion (Misc queries) 2 November 3rd 05 02:45 PM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"