Welcome to the forum.

Do check this thread to learn about vba - http://www.excelforum.com/excel-prog...materials.html