its ugly, but what I've done in hte past is actually go through the loop once just to find the total number, and then go through it again to do the actual work. If you don't know the total number, you could make it work like the typical MS progress bar and guess
I mean how many times have you seen it get up to about 50% and finish? lol
I've actually seen a progress bar go backwards LOL
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.