Puoi usare una For Each ... fai delle ricerche su questo stesso forum per avere spunti, ad esempio

http://forum.html.it/forum/showthread/t-1267590.html