Refer this link

http://www.experts-exchange.com/Soft...ss-in-VBA.html