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.

Listbox Genera un espacio en blanco cuando cargo datos

publicado

Buenas, tengo un Listbox, el cual cuando inicia el programa me lo trae con informacion que carga de la hoja 1, y a la par asociado un Combobox que se le va agregando mas info a este Listbox.

El problema pasa cuando Inicia, y me carga la info previa que hay en la hoja 1 en el listbox, ya que luego, al agregarle mas info por el combox me deja un espacio en blanco. a continuacion el codigo que tengo

Private Sub UserForm_Initialize()
Application.ScreenUpdating = False
Worksheets(1).Select
Y = 0
vuelve:
a = Cells(Y + 1, 12)
If a = "" Then GoTo seguir:
Y = Y + 1
GoTo vuelve:
seguir:
Range("L1").Select
For ii = 1 To Y
ActiveCell.Offset(1, 0).Select
ListBox1.AddItem ActiveCell
Next ii
X = 0
vuelve1:
a = Cells(X + 10, 1)
If a = "" Then GoTo seguir1:
X = X + 1
GoTo vuelve1:
seguir1:
Range("A10").Select
For i = 1 To X
UserForm6.ComboBox1.AddItem ActiveCell
ActiveCell.Offset(1, 0).Select
Next i
Application.ScreenUpdating = True
End Sub
[/CODE]

Featured Replies

publicado

Es una forma rara de hacer un bucle, por qué no subes tu ejemplo?

Salu2!

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.