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.

Me pueden ayudar con este error:"no se puede obtener la propiedad pivoitems de la clase pivotfields"

publicado

parte del codigo y donde se produce el error es el siguiente, mas abajo se produe el error:

FechaInicial_2013 = Workbooks(LibroActivo).Sheets(hojaactiva).Cells(1, 2).Value

FechaFinal_2013 = Workbooks(LibroActivo).Sheets(hojaactiva).Cells(2, 2).Value

FechaInicial_2014 = Workbooks(LibroActivo).Sheets(hojaactiva).Cells(3, 2).Value

FechaFinal_2014 = Workbooks(LibroActivo).Sheets(hojaactiva).Cells(4, 2).Value

Application.ScreenUpdating = False

Set pt = ActiveSheet.PivotTables("Tabla din?mica1")

Set pf = pt.PivotFields("Fecha")

For Each pi In pt.PivotFields("Fecha").PivotItems

FechaComparacion = VBA.Format(pi.Value, "dd/mm/yyyy") 'CDate(pi.Value)

If FechaComparacion >= FechaInicial_2013 And FechaComparacion <= FechaFinal_2013 Or FechaComparacion >= FechaInicial_2014 And FechaComparacion <= FechaFinal_2014 Then

pi.Visible = True ' ACA ES DONDE SE PRODUCE EL ERROR Y LA TABLA DINAMICA NO HACE EL FILTRO , OJO QUE "Fecha" ES UN CAMPO DE INFORME Y ESTOY TRABAJANDO EN EXCEL 2007

Else

pi.Visible = False

End If

Next pi

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.