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.

Error 91

publicado

Buenos días:

 

Tengo el placer de compartir mis inquietudes con todos vosotros e intentar resolver una duda ("error 91"). Estoy intentando montar una base de datos en VBA.

Os comento que en la columna "A" hay una fórmula (=SI(B2>0;FILA(A1);"")) para que me devuelva un items no repetido y poder seleccionar desde un listbox, pero a la hora de seleccionar el elemento a modificar o eliminar me da el error '91'. Mando imágenes del error por si hubiera alguna manera de resolverlo.

 

Muchísimas gracias y un saludo muy fuerte.

 

 

'Activar la celda del registro elegido
Private Sub ListBox1_Click()
    Range("A2").Activate
    Cuenta = Me.ListBox1.ListCount
    For i = 0 To Cuenta - 1
        If Me.ListBox1.Selected(i) Then
            'MsgBox Me.ListBox1.List(i)
            Valor = Me.ListBox1.List(i)
            Sheets("Reservas").Range("A2:A1000").find(What:=Valor, LookAt:=xlWhole, After:=ActiveCell).Activate
        End If
    Next i


    'Fila = Me.ListBox1.ListIndex + 2
    'For i = 1 To 4
    '    Cells(Fila, 1).Activate
    'Next i
End Sub

El error me lo marca en la fila Sheets ("Reservas").Range("A2:A1000").Find...

 

 

Featured Replies

publicado

Sube un archivo,  con datos de prueba, en el que se te presenta el error, con la macro solo no hacemos nada.

  • 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.