Hello,

Will some one help me out in acting on windows messages in VB6? For example if MS word is open and user is editing the file, I want VB to check which file is open and save the file in occurence of "ActiveWindow.Close", and "Application.Quit " . This is to avoid loosing any text in case of sudden windows shutdown. Please do suggest some codes ( I am not worrried about autosave option in MS word.)

Thanks in advance
Milind