Professional Documents
Culture Documents
1
1
Worksheets("formulario").Activate
Range("b6").Activate
codigo = txtcodigo
articulo = txtarticulo
unid = txtund
cant = txtcantidad
preciouni = txtprecio
ActiveCell.Offset(1, 0).Select
Loop
ActiveCell.Offset(0, 0) = codigo
ActiveCell.Offset(0, 1) = articulo
ActiveCell.Offset(0, 2) = unid
ActiveCell.Offset(0, 3) = cant
ActiveCell.Offset(0, 4) = preciouni
ActiveCell.Offset(0, 6) = descuento
ActiveCell.Offset(0, 7) = total
txtcodigo = ""
txtarticulo = ""
txtund = ""
txtcantidad = ""
txtprecio = ""
txtcodigo.SetFocus
End Sub
End Sub
End Sub
Ejercicio 1
bono As Currency,
sueldo As Currency
Worksheets("Registro").Activate
Range("A9").Activate
nombre = txtnombre
dias = txtdias
pago = txtpago
bono = txtbono
ActiveCell.Offset(1, 0).Select
Loop
ActiveCell.Offset(0, 0) = nombre
ActiveCell.Offset(0, 1) = dias
ActiveCell.Offset(0, 2) = pago
ActiveCell.Offset(0, 3) = bono
ActiveCell.Offset(0, 4) = sueldo
txtsueldo = sueldo
txtnombre.SetFocus
End Sub
txtnombre = ""
txtdias = ""
txtpago = ""
txtbono = ""
txtsueldo = ""
txtnombre.SetFocus
End Sub
End
End If
End Sub