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.

Vincular tablas dinámicas con filtros de varios elementos

publicado

Hola,

Antes de nada saludar a todos los usuarios.

Acabo de vincular varias tablas dinámicas a un mismo filtro de informe con el código que vi en este foro y funciona perfectamente, el problema viene al seleccionar varios elementos dentro del filtro, si marco la opción "seleccionar varios elementos" deja de funcionar.

Me podríais ayudar con el código para poder hacer filtros de varios elementos, por ejemplo si tengo el campo trimestres que pueda seleccionar T1, T2 y T3.

Este es mi código:

Private Sub Workbook_SheetPivotTableUpdate(ByVal Sh As Object, ByVal Target As PivotTable)

Dim TablaDinamica As PivotTable

Const Filtro1 As String = "Trimestre"

Application.EnableEvents = False

On Error Resume Next

For Each Sh In Sheets(Array("Agentes Evolución Anual Ventas", "Abc Provincias", "Abc Lámparas"))

For Each TablaDinamica In Sh.PivotTables

TablaDinamica.PivotFields(Filtro1).CurrentPage = Target.PivotFields(Filtro1).CurrentPage.Name

Next TablaDinamica

Next Sh

Application.EnableEvents = True

End Sub

Un saludo y Muchas gracias!!!

Featured Replies

No hay posts para mostrar

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.