yes HannesThGreaT Has given to you perfect solution .go for the those links .

http://www.freevbcode.com/ShowCode.asp?ID=2815


http://www.tek-tips.com/faqs.cfm?fid=3906