IF NOT THISFORM.PageFrame1.Pages( THISFORM.PageFrame1.ActivePage ).Enabled THISFORM.PageFrame.ActivePage = 1 ENDIFWell in design, the original order has swapped pages and none of the pages are in their original position. So how do I make a generic routine that will work with what I am trying to do above.