![]() |
Using VBA to close a running application
Hi,
I'd like to have some VBA code in excel that will close a running app if it's open. Now I've found some code that closes all apps of a type (ie kills all instances of msaccess.exe), but I want to close just certain access db's, not all of them. I've tried: killstring = "taskkll /f /fi windowtitle eq filename : database (Access 2000 file format) - Microsoft Access" Call Shell(killstring, vbhide) But this doesn't seem to work. Are there any other solutions? Thanks |
Using VBA to close a running application
On 10 Ott, 11:57, macroapa wrote:
Hi, I'd like to have some VBA code in excel that will close a running app if it's open. Now I've found some code that closes all apps of a type (ie kills all instances of msaccess.exe), but I want to close just certain access db's, not all of them. I've tried: killstring = "taskkll /f /fi windowtitle eq filename : database (Access 2000 file format) - Microsoft Access" Call Shell(killstring, vbhide) But this doesn't seem to work. Are there any other solutions? Thanks Hi macroapa. See: http://support.microsoft.com/kb/210518/en-us Regards Eliano |
All times are GMT +1. The time now is 06:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com