Ok, I've moved my code into Private Sub Form_Activate() and it works.