In the VB programming process, if there is too much loop command or too many nested statements, it is prone to lead to computer crash, and process execution of the user can not be interrupted. In this paper, this problem is studied and discussed and solutions are given.