Escolar Documentos
Profissional Documentos
Cultura Documentos
Usted puede realizar un formulario con visual basic, para calcular el valor de las horas extras
Sheets("hoja2").Select
Range("a2").Select
ActiveCell.FormulaR1C1 = a
Sheets("hoja2").Select
Range("b2").Select
ActiveCell.FormulaR1C1 = b
Sheets("hoja2").Select
Range("c2").Select
ActiveCell.FormulaR1C1 = ComboBox1
Sheets("hoja2").Select
Range("d2").Select
ActiveCell.FormulaR1C1 = c
Página 1
‘En este botón encontrara el funcionamiento de la estructura case
Página 2
If h = 2 Then
hora = "HEN"
End If
If h = 3 Then
hora = "HER"
End If
If h = 4 Then
hora = "HEF"
End If
If h = 5 Then
hora = "HEFD"
End If
If h = 6 Then
hora = "HEFN"
End If
If h = 7 Then
hora = "HERF"
End If
ComboBox1.AddItem (hora)
Next
End Sub
Página 3