i've gotten around this by naming my images with sequential numbers. then you can just have a constant you change that holds the number of the largest image and you can use that to construct your loop ...
Tom Warren is a senior editor and author of Notepad, who has been covering all things Microsoft, PC, and tech for over 20 years. Microsoft Excel used to only allow two types of data: text and numbers.