Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Track if any changes made after file opened

Hello,

I have a template file which has vb codes, user forms. I want to
activate one of the user forms if no change has made after excel file
opened, or deactivate if any changes made after excel file opened. Is
there any way I can track that?

Thanks,
sermest
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Track if any changes made after file opened



If Not ActiveWorkbook.Saved Then
MsgBox "This workbook contains unsaved changes."
Else
MsgBox "No Unsaved Changes"

End If

Can use ThisWorkbook.Saved. Also the property can be set to True so that you
can exit without saving or getting an Alert message.


--
Regards,

OssieMac


Reply
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
Keep the track of persons how opened the sheet and made changes. Heera Excel Programming 3 November 14th 08 05:18 PM
can't find file opened from email,changes made & saved newtothis Excel Discussion (Misc queries) 2 September 6th 08 09:44 PM
Track when a file has been opened Judy Excel Discussion (Misc queries) 2 August 24th 07 04:02 PM
Track whose made changes Kiba Excel Programming 3 May 25th 07 03:32 PM
Can I track changes made to a shared file per userid. Julie _at_GBS Excel Discussion (Misc queries) 4 May 3rd 05 01:52 PM


All times are GMT +1. The time now is 06:53 AM.

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

About Us

"It's about Microsoft Excel"