the msgbox function takes several arguments.
one of the is the MSgBoxStyle flag. Set it to vbSystemModal