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.

CÓMO APARECER SIEMPRE LOS FILTROS AUTOMÁTICOS EN UNA HOJA

publicado

Hola a todxs,

Me gustaría que los filtros automáticos aparecieran siempre que se activa la hoja, tal y como aparece en la imagen adjunta.

530339017_Sinttulo2.thumb.png.561e9b3ef355faf32e8614277d9fa573.png

Para ello, he desarrollado el siguiente evento:

Private Sub Worksheet_Activate()

   With Sheets("Hoja1")
      .AutoFilterMode = False   ' Desactivamos siempre los filtros automáticos...
      .Cells.AutoFilter
   End With

End Sub

Sin embargo, no me funciona, porque la primera vez se activan los filtros automáticos, pero a la siguiente no.

Es casi como poner lo siguiente:

Private Sub Worksheet_Activate()

   Sheets("Hoja1").Cells.AutoFilter

End Sub

Es decir, se quitan y se ponen cada vez que se activa la hoja del libro.

En fin, me podriáis orientar un poquito?

 

Muchas gracias de antemano.

Featured Replies

publicado

Hola @paikerr

Prueba si ésto es lo que necesitas.

Suerte!

 

Private Sub Worksheet_Activate()

If ActiveSheet.AutoFilter Is Nothing Then Range("A1:H1").AutoFilter

End Sub

 

publicado
  • Autor

@tierra_pampa, SOLUCINADO!!!

Muchas gracias.

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.