So I have something like this:
but I don't want to continue the loop until Form2 is closed. I tried something like this:Code:For Each Entry In CheckedListBox1.CheckedItems SheetName = Entry.ToString() Form2.Show() Next
But that just froze everything and used up all my CPU.Code:For Each Entry In CheckedListBox1.CheckedItems SheetName = Entry.ToString() Form2.Show() Do If Form2.Visible = False Then Exit Do End If Loop Next


Reply With Quote
