Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
X = ActiveWindow.Width / 2
Y = ActiveWindow.Height / 2
For i = 100 To 0 Step -1
Me.Width = 7.77 * i
Me.Height = 4.53 * i
DoEvents
Me.Left = X - Me.Width / 2
Me.Top = Y - Me.Height / 2
Me.Repaint
Next
End Sub