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.

Agregar listas al Combobox

publicado

Buenos días, soy bastante novato en programación y tengo un problema, no consigo ver las listas en el Combobox del Formulario. 

A ver quien me puede echar una mano.

Gracias.prueba.xlsm

Featured Replies

publicado

Cambia Private Sub UserForm1_Initialize() por Private Sub UserForm_Initialize() y listo.

Si quieres prever que las listas puedan ampliarse:

Private Sub UserForm_Initialize()
With Sheets("NOTAS")
   ComboBox1.List = .Range(.Range("S1"), .Range("S1").End(xlDown)).Value
   ComboBox2.List = .Range(.Range("T1"), .Range("T1").End(xlDown)).Value
   ComboBox3.List = .Range(.Range("Q1"), .Range("Q1").End(xlDown)).Value
   ComboBox4.List = .Range(.Range("R1"), .Range("R1").End(xlDown)).Value
End With
End Sub


 

Editado el por Antoni

publicado

@vecodis , cambia tú codigo por el siguiente y borra el del evento "Initialize"

Private Sub UserForm_Activate()
    ComboBox1.RowSource = Worksheets("NOTAS").Range("S1:S12").Address
    ComboBox2.RowSource = Worksheets("NOTAS").Range("T1:T6").Address
    ComboBox3.RowSource = Worksheets("NOTAS").Range("Q1:Q30").Address
    ComboBox4.RowSource = Worksheets("NOTAS").Range("R1:R2").Address
End Sub

Te diría que mires la diferencia entre "Initialize" y "Activate" y entre "List" y Rowsource"

publicado
  • Autor

Muchas gracias por vuestro tiempo y dedicación.

Sin duda,  que estudiaré vuestras sugerencias.

Saludos.

TEMA SOLUCIONADO.

publicado

Hola vecodis, nunca olvides agradecer a quien te ayuda o intenta ayudar y en el foro la manera de agradecer es mediante el corazoncillo que hay en la parte inferior izquierda.

Agradecimiento.gif

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.