Me.Height = Me.Height + 3
If Me.Height = 300 Then 'if height = 300 then timer1 will stop
Timer1.Stop()
Me.Height = 300 ' set height to 300
End If
If Me.Height > 300 Then 'if height more than 300 than timer1 will stop and set height to 300
Timer1.Stop()
Me.Height = 300 'Set Height to 300
End If
End Sub