Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Unload Me 'Removes Userform named frmStats from memory. End Sub