الشكل الثالث:
Private Sub UserForm_Activate()
Me.Left = Application.ActiveWindow.Width / 2 - 125
For m = 1 To 2300 * (Application.ActiveWindow.Height / 2) - 75
Me.Top = 0.0005 * m / 2
Next m
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
For m = 1 To 1500
Me.Left = Me.Left - 0.001 * m
Me.Width = Me.Width - 0.0004 * m
Next m
Unload Me
End Sub