Sub MFileExit_Click () '--- Use Form_Unload since it has code to check ' for un sent data and open log file Form_Unload Ret End Sub