Macro does not work after converting to .exe
I am using below macro in a sheet and wants to convert the sheet to .exe format by using a XLTOEXE program.
Macro works perfectly in normal .xls sheet. However, it does not work correctly in the converted file (converted to .exe). It gives the message as per the macro message box but still opens the Save As box.
Can somebody help?
I have put it in THISWORKBOOK.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If SaveAsUI = True Then
MsgBox "Use Save option"
Cancel = True
End If
End Sub
Thanks
Vinay