ERROR TIPO 13
Publicado por paola urgiles (1 intervención) el 31/10/2016 22:27:37
AYUDA NOSE PORQUE ME SALE EL ERROR 13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Sub Navidad()
Dim Extras As Integer
Dim Ausencia As Integer
Dim Sobretiempo As Double
Dim Gratificacion As Double
Extras = Worksheets("Hoja1").Range("A3").Value
Ausencia = Range("B3").Value
Gratificacion = Range("C3").Value
Sobretiempo = (Extras - 2 / 3 * Ausencia)
If Sobretiempo > 40 Then
Gratificacion = 500
End If
If Sobretiempo > 30 And Sobretiempo <= 40 Then
Gratificacion = 400
End If
If Sobretiempo > 20 And Sobretiempo <= 30 Then
Gratificacion = 300
End If
If Sobretiempo > 10 And Sobretiempo <= 20 Then
Gratificacion = 200
End If
If Sobretiempo > 0 And Sobretiempo <= 10 Then
Gratificacion = 100
End If
If Sobretiempo = 0 Then
Gratificacion = 0
End If
Gratificacion = ("C3")
End Sub
Valora esta pregunta


0