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.

Ayuda con mi msgbox para validar

publicado

SALUDOS AMIGOS DEL FORO

HABER SI ME HECHAN UNA MANITO

NO PUEDO VALIDAR AL BUSCAR UN DATO NO ENCONTRADO AL INTRODUCIR CODIGO EN TextBox1 ME LANZA UN ERROR 1004 EN LUGAR QUE ME LANCE UNA ADVERTENCIA "Producto no Encontrado" AYUDENME A SOLUCIONAR mi MsgBox PORFA

LES ADJUNTO EL ARCHIVO

ayuda_MsgBox.rar

Featured Replies

publicado

Sustituye tu código por este:


Private Sub TextBox1_AfterUpdate()
On Error GoTo NoExiste
TextBox2 = Application.WorksheetFunction.VLookup(Val(TextBox1), ActiveSheet.Range("A2:c20"), 2, 0)
TextBox4 = Application.WorksheetFunction.VLookup(Val(TextBox1), ActiveSheet.Range("A2:c20"), 3, 0)
Exit Sub
NoExiste:
MsgBox "El código entrado no existe", vbOKOnly, "Aviso"
TextBox1.SetFocus
End Sub

Private Sub TextBox1_change()
If Not IsNumeric(TextBox1) Then
MsgBox "Debe ingresar un valor numerico", vbOKOnly, "Aviso"
If Len(TextBox1.Text) > 1 Then
TextBox1.Text = Mid(TextBox1.Text, 1, Len(TextBox1.Text) - 1)
Else
TextBox1 = ""
End If
End If
End Sub

[/CODE]

publicado
  • Autor

ABOHORQUEZ en realidad si me copie códigos de varios ejemplos del foro y de jeanette era lo que mas o menos quería hacer pero no pude adaptarlo a mi formulario te agradezco por interesarte y responder mi tema

/////////*********

MARCO ANTONIO a ti agradecerte bastante por dar solución a mi problema..... Ahora Ya resolví una parte de mi trabajo ..Gracias a ti...!

images?q=tbn:ANd9GcR-3mJg7u1pMyamLvUP6jyfQq_9KgErL3pTXUnLzX6fubBlUmhrGAimages?q=tbn:ANd9GcT0qPmfWmE87nl_b3OsVyl6VkFJ5VhKd-DzcklRzbma7a4-lKEC

HASTA PRONTO MI AMIGO : :) SOLUCIONADO EL TEMA :)

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.