I have eleminated excessive codes to make it easier to read... When this code is run I can see the first 3 dialog of app.alert but nothing after than... I can see p is not equal to nP... or at least I should have fallen one time into the do While loop? shouldn't I? The red app.alert is not displayed why?