RosettaCodeData/Task/Program-termination/VBA/program-termination.vba
2023-07-01 13:44:08 -04:00

5 lines
274 B
Text

'In case of problem this will terminate the program (without cleanup):
If problem then End
'As VBA is run within an application, such as Excel, a more rigorous way would be:
If problem then Application.Quit
'This will stop the application, but will prompt you to save work.