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.

De listbox a hoja excell

publicado

Hola estimados amigos de ayuda excel

Recurro a ustedes despues de estar batallando con un trabajo y estoy bloqueado, les explico, tengo una funcion buscar, y los resultados los envia a un listbox, de hay click en el item que quiero imprimir y me lo envia a la hoja, hasta hay todo bien, el problema lo tengo cuando selecciono varios item, por que solo me pasa uno, espero y agradezco su ayuda

Muchas gracias por anticipado

Funcion buscar.rar

Featured Replies

publicado

Este código hace lo que buscas.

Set a = Sheets("Listado")
For x = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(x) = True Then
filaedit = a.Range("A" & Rows.Count).End(xlUp).Row + 1
a.Cells(filaedit, "A") = ListBox1.List(fila, 0)
a.Cells(filaedit, "B") = ListBox1.List(fila, 1)
a.Cells(filaedit, "C") = ListBox1.List(fila, 2)
a.Cells(filaedit, "D") = ListBox1.List(fila, 3)
a.Cells(filaedit, "E") = ListBox1.List(fila, 4)
a.Cells(filaedit, "F") = ListBox1.List(fila, 5)
a.Cells(filaedit, "G") = ListBox1.List(fila, 6)
a.Cells(filaedit, "H") = ListBox1.List(fila, 7)
a.Cells(filaedit, "I") = ListBox1.List(fila, 8)
a.Cells(filaedit, "J") = ListBox1.List(fila, 9)
a.Cells(filaedit, "K") = ListBox1.List(fila, 10)
a.Cells(filaedit, "L") = ListBox1.List(fila, 11)
a.Cells(filaedit, "M") = ListBox1.List(fila, 12)
a.Cells(filaedit, "N") = ListBox1.List(fila, 13)
End If
Next

[/CODE]

publicado
  • Autor

Saludos maestro Macro Antonio, con tu solucion no se arregla , solo funca parcialmente, ahora si selecciono el item 1, 2, 3 y 4, me envia 4 veces el item 1 a la hoja "listado"

Saludos

  • Silvia bloqueó este 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.