Quote Originally Posted by LalitPandey87 View Post
Thanks Rick this is exactly what i am looking for. Thanks again for your quick and great response.
You are quite welcome. Believe it or not, this is old code I have had in my personal archives for I don't know how many years now (more than 6 for sure)... it is from my days back when I volunteered answering question for the old compiled version of VB (prior to doing so for Excel). Since it is just making Windows API function calls, no changes were needed before posting it to your message since VBA supports the same calls to the Window API functions.