For Excel, see this link

http://forums.vb-world.net/showthrea...hreadid=117718