Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

resultado en un txt

publicado

buenas a todos , pido disculpas por preguntar  ta lves cosas elementales , ya con la practica ire aprendiendo . la cuestion que me toca hoy es saber cual seria la instruccion 

para que en un txt del formulario (todod datos numericos) se llene como resultado de la division de otros 2 txt , intente con:

Private Sub txtValorPresupUsd_Change()
 Dim Valor1 As Double
 Dim Valor2 As Double
 Dim valor3 As Double

Valor1 = Val(txtValorPresup.Text)

valor3 = Val(txtCotiz1.Text

If txtValorPresup.Value <> "" Then

txtValorPresupUsd.Value = Valor1 / valor3

End If
  
   txtValorPresupUsd.Value = Format(txtValorPresupUsd, "#,##0.00")

End Sub
 

 

Featured Replies

publicado
Private Sub txtValorPresupUsd_Change()
Dim ValorPresupUsd As Double
Dim ValorPresup As Double
Dim Cotiz1 As Double
'--
If IsNumeric(txtValorPresup) And IsNumeric(txtCotiz1) Then
   ValorPresup = CDbl(txtValorPresup)
   Cotiz1 = CDbl(txtCotiz1)
   If Cotiz1 > 0 Then
      ValorPresupUsd = ValorPresup / Cotiz1
      txtValorPresupUsd = Format(ValorPresupUsd, "#,##0.00")
   End If
End If
End Sub

 

publicado
  • Autor

HOLA ANTONI: No tuve el resultado esperado, por ej  al digitar txtA y txtB deseo que en txtC aparesca  el resultado de la division entre txt1 y txt2  y ademas los tres txt expresados  con dos decimales sin ejecutar ningun comando . Bueno espero que se entienda dado que con la instruccion que me aconsejaste no aparece el resultado en txt3

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.