Here's the code I have without the i as the index.
What I would like to do is change the pageNumber and the range so instead of having a 1 or 2 etc the i would change with the page selection. This way I wouldn't have to have a different line for each page and range.
Code:
Me.Filter = "PageNumber1 = " & vpagenumbers & " and Range1 = '" & VRange & "' and Category = '" & VCatSelection & "'"
Comment