Is it possible to force Excel to close if Macros aren't enabled after opening some file?
Printable View
Is it possible to force Excel to close if Macros aren't enabled after opening some file?
Sure, but how are you expecting it to close if you are doing it from the contained vBA if macros are disabled? Now if you are executing the workbook using another language like VB 6 then yes you can.
Can you give us more details?