Codigos Visual
Codigos Visual
fila = 1
num = Val(TextBox1.Text)
may = num
Cells(fila, 1) = TextBox1.Text
For i = 1 To 4 Step 1
fila = fila + 1
Cells(fila, 1) = num
may = num
End If
Next i
TextBox2.Text = may
End Sub
End Sub
End
End Sub
End Sub
HORAS TRABAJADAS DE UN TRABAJADOR
HT = Val(TextBox1.Text)
TH = Val(TextBox2.Text)
TI = Val(TextBox3.Text)
PB = HT * TH
I = PB * TI / 100
PN = PB - I
TextBox4.Text = PB
TextBox5.Text = I
TextBox6.Text = PN
CommandButton2 = SetFocus
End Sub
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox1.Text = SetFocus
End Sub
End Sub
End Sub
edad = Val(TextBox1.Text)
Else
TextBox2.Text = "NIÑO"
Else
TextBox2.Text = "ADOLESCENTE"
Else
TextBox2.Text = "JOVEN"
Else
TextBox2.Text = "ADULTO"
Else
End If
End If
End If
End If
End If
End If
TextBox1.Enabled = False
End Sub
TextBox1.Enabled = True
TextBox1.Text = ""
TextBox1.SetFocus
TextBox2.Text = ""
End Sub
End
End Sub
CANTIDAD DE LADRILLOS
L = Val(TextBox1.Text)
H = Val(TextBox2.Text)
JH = Val(TextBox3.Text)
JV = Val(TextBox4.Text)
TextBox5.Text = Round(CL, 2)
End Sub
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
Unload Me
End Sub
End Sub
End Sub
End Sub
Private Sub UserForm_Click()
End Sub