Quote Originally Posted by gmaxey
The code runs without error on the last sample document that you posted. It contains two .jpg format files and three .png format files. Did you test on the same file?

Yes Greg,

I run that code in that doc only but it is going for endless loop.

I have checked again.

Can you please send me that doc again.

Thanks