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.

Cargar nombres de hoja en combobox

publicado

Saludo cordial.

Por favor a quien me pueda ayudar .

Deseo cargar los nombres de las hojas en un combobox pero que este se de a partir de la hoja 5.

Prívate Sub Userform_Initialize

Dim hoja as Worksheet.   

Combobox1.clear 

For Each hoja un Worksheets 

MySheet= hoja.name

Combobox1.Additem MySheet 

Next 

End Sub 

Este código me carga la totalidad de los 

Nombres de las hojas en el combo y requiero que solo me cargue los nombres apartir de la hoja 5 .

De ante mano, mil gracias a quien me pueda colaborar 

 

 

 

 

 

 

 

Featured Replies

publicado

Prueba y comenta

Private Sub CommandButton1_Click()
    ComboBox1.Clear
    For Each hoja In Sheets
        If hoja.Name > "Hoja4" Then
            ComboBox1.AddItem hoja.Name
        End If
    Next
End Sub

 

publicado
Private Sub CommandButton1_Click()
   For x = 6 To Sheets.Count
      ComboBox1.AddItem Sheets(x).Name
   Next
End Sub

 

publicado
  • Autor

Mil gracias ... justo lo que requeria .

Bendiciones 

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.