ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shell function and error trap (https://www.excelbanter.com/excel-programming/336207-shell-function-error-trap.html)

tmort[_13_]

Shell function and error trap
 

I have several command buttons that I use to open other programs using
the shell command.

One of them is a DOS program. If when the user is done with it they
close with the exit command within the program it closes OK. If they
use the close button they get an error message and then the program
closes.

I'd like to trap this error message or just turn it off. It's
confusing. Can this be done?

THanks in advance


--
tmort
------------------------------------------------------------------------
tmort's Profile: http://www.excelforum.com/member.php...o&userid=21053
View this thread: http://www.excelforum.com/showthread...hreadid=392380



All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com