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.

Condicionales para Guardar en un Userform

publicado

Buen día nuevamente,

Agradeciendo y al mismo tiempo aprovechando la buena voluntad de ayuda. Necesito un código que realice lo siguiente: Que no pueda guardar si los primieros tres textbox se encuentran vacios y si por lo menos uno de los textbox tiene valor que sí me permita hacerlo, conseguí un cod. pero solamente me funciona con el textbox1.

Otro punto sería condicionar los primeros textbox a que acepten solamente números, eso tomando en cuenta que en ellos he colocado un cód. que me permite sumar dentro de cada textbox.

Por su ayuda muy agradecido.

Condicional p G.rar

Featured Replies

publicado

Hola.

Para que acepte solo números prueba este código:

Private Sub TextBox1_Change()
If Not IsNumeric(Me.TextBox1.Value) Then
MsgBox "solo numeros"
x = VBA.Len(Me.TextBox1.Value) - 1
Me.TextBox1.Value = VBA.Left(Me.TextBox1.Value, x)
End If
End Sub

Y para que no se añada ningún registro si los tres primeros TextBox están vacíos prueba este otro:

If Me.TextBox1 = "" And Me.TextBox2 = "" And Me.TextBox3 = "" Then Exit Sub

Saludos.

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.