Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/11/2007, 12:15
Avatar de juancho24
juancho24
 
Fecha de Ingreso: octubre-2007
Mensajes: 101
Antigüedad: 16 años, 7 meses
Puntos: 1
De acuerdo Re: ayuda con un textbox

Cita:
Iniciado por ReViJa Ver Mensaje
Si las cantidades no son excesivamente grandes puedes hacerlo así:

Código:
Private Sub Sumar()
  txtActivosProductivos.Text = Val(txtValorAutomoviles.Text) + Val(txtValorMaquinarias.Text) + Val(txtValorMobiliario.Text) + Val(txtValorOtros.Text)
End Sub

Private Sub txtValorAutomoviles_Change()
  Call Sumar
End Sub

Private Sub txtValorMaquinarias_Change()
  Call Sumar
End Sub

Private Sub txtValorMobiliario_Change()
  Call Sumar
End Sub

Private Sub txtValorOtros_Change()
  Call Sumar
End Sub
Si son números muy grandes usa variables, ok.

Saludos.

Problema solucionado, muchas gracias por la ayuda

Saludos