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.

Cómo contar en una columna de un listBox 25 datos diferentes y mostrarlos en Label, como si fuese un Contar.Si

publicado

Hola a los foreros y maestros del foro, tengo un duda que seguro que me daréis solución, en un listBox tengo una columna llenas de códigos ( al mes me genera mas de 1000 codigos en total)  estos van del B01 al B25, con el siguiente macro solo me reporta uno, he probado  y no se como  hacerlo para que me reporte la información de los 25 codigos y me cuente los generados (ejemplo B01 =124 ,  B02=78,  B03=189 ..etc) mi nivel de macros es de un principiante. Gracias por adelantado

Private Sub CommandButton2_Click()
For i = 0 To ListBox1.ListCount - 1
If ListBox1.List(i, 5) = "B01" Then

Contador = Contador + 1
End If
Next i

Label3 = "B01 = " & Contador
End Sub

Featured Replies

publicado

Sube tu archivo y pon un ejemplo de lo que tienes y de lo que quieres.

publicado
  • Autor

Antoni, me quito el sombrero, lo que es casi imposible para mi, tu lo haces fácil muchas gracias.

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.