
Private Sub CommandButton6_Click()
Dim a As Integer
a = TextBox18
Dim b As Integer
b = 5
If a >= 2 * b And a < 3 * b Then Application.ActivePresentation.Slides(3).Duplicate
If a >= 3 * b And a < 4 * b Then Application.ActivePresentation.Slides(3).Duplicate
If a >= 4 * b And a <= 5 * b Then Application.ActivePresentation.Slides(3).Duplicate
End
End
End Sub |
Dim a As Integer
a = TextBox18
Dim b As Integer
b = 5
If a >= 2 * b And a < 3 * b Then
Application.ActivePresentation.Slides(3).Duplicate
ElseIf a >= 3 * b And a < 4 * b Then
Application.ActivePresentation.Slides(3).Duplicate
Application.ActivePresentation.Slides(3).Duplicate
ElseIf a >= 4 * b And a <= 5 * b Then
Application.ActivePresentation.Slides(3).Duplicate
Application.ActivePresentation.Slides(3).Duplicate
Application.ActivePresentation.Slides(3).Duplicate
End
End Sub |
