I use this code to test all the pages in a Multipage control and if one of them is true then I want a true value. Is there a way I can loop through all the pages instead of the way I do it now - just in case I add a page, I would not need to go back and change the code everytime. Here is the code:

If .mpError.pgError1.Visible = True Or .mpError.pgError2.Visible = True Or _
         .mpError.pgError3.Visible = True Or .mpError.pgError4.Visible = True Or _
         .mpError.pgError5.Visible = True Or .mpError.pgError6.Visible = True Or _
         .mpError.pgError7.Visible = True Or .mpError.pgError8.Visible = True Or _
         .mpError.pgError9.Visible = True Or .mpError.pgError10.Visible = True Or _
         .mpError.pgError11.Visible = True Or .mpError.pgError12.Visible = True Then
I use a with before it so that is why it starts with a .