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.

Restar en barios Textbox

publicado

Es que quiero restar en varios Textbox y una vez que siga apretando el botón siga restando. pero no logro poder lograr que funciones

Private Sub CommandButton1_Click()


On Error Resume Next


TextBox3 = CDbl(TextBox4) - CDbl(TextBox5) - CDbl(TextBox6) - CDbl(TextBox7) - CDbl(TextBox8)

 


End Sub

Featured Replies

publicado

TextBox3 = TextBox3 - CDbl(TextBox4) - CDbl(TextBox5) - CDbl(TextBox6) - CDbl(TextBox7) - CDbl(TextBox8)

publicado
  • Autor

Gracias por la ayuda  tengo esta duda

 

On Error Resume Next
TextBox3 = TextBox4 - TextBox5 - TextBox6 - TextBox7 - TextBox8
If CDbl(TextBox3) < 0 Then TextBox3 = 0

 

una vez que borren en el TextBox el valor,  no hay una manera que en TextBox siempre este en 0  para que no tenga problema a la hora de borrar la cantidad y le den calcular siga restando porque una vez que se quiera borrar la cantidad y el TextBox no tenga el valor no dara resultado!!

 

 

 

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.