Thank you henrikoz ! But i need the macro to run the program. If you have time please check the link, i have change the database format, there are two sheets in the database. http://www.excelforum.com/excel-prog...nt-sheets.html