oh my bad, i read the question too quickly... look at this other thread, the answer is here... you need to use windows functions by importing first... look at this post...
the only way i know how is to use windows api but i dont see vba code for it, you can look up the examples in c++ and import the proper functions, setup the proper structures in vba and try it that way... might be a little tough to convert but im pretty sure your only option is to use windows api...
If you know the application class name or the exact title name that is displayed in the application main caption bar then you should, hopefully, be able use aome API calls to get its hwnd and then close it.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.