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.

Ciclar una macro hasta que se cumpla una condicion

publicado

Buenos días.

Tengo un problemita con una macro y esperaba me pudieran ayudar. necesito un codigo para que no me permita continuar con los pasos de la macro hasta que se cumpla una condición (que dos celdas contengan un texto especifico o diferente a un texto especifico) anexo un ejemplo y espero me puedan ayudar. de antemano muchas gracias

Libro2.zip

Featured Replies

publicado

Exactamente que hace tu código? Creo que no te convendría mucho ciclar tu código, mas bien sería usar la siguiente sintaxis:

Msgbox("Datos erróneos") : Exit Sub

El mensaje obvio lo puedes cambiar por el que quieras, sólamente utilizas un If donde verifiques si las celdas contienen esos datos y si se cumple pones la línea que te agregué, por ejemplo en el archivo que mandaste imaginandome como se llaman tus textbox, les diremos 1 y 2:

If Textbox2 = "" Or Textbox2 = "N/A" And Textbox1 = "NO" Then
     Msgbox("Datos erróneos") : Exit Sub
Else
     'Aqui el resto del código
End if

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.