Propiedad PivotField.AutoShowCount (Excel)

Devuelve el número de elementos superiores o inferiores que se muestran automáticamente en el campo de la tabla dinámica especificado. Long de sólo lectura.

Sintaxis

expresión. AutoShowCount

Expresión Variable que representa un objeto PivotField .

Ejemplo:

Este ejemplo muestra un cuadro de mensaje que contiene los parámetros de Automostrar del campo Salesman.

With Worksheets(1).PivotTables(1).PivotFields("salesman") 
 If .AutoShowType = xlAutomatic Then 
 r = .AutoShowRange 
 If r = xlTop Then 
 rn = "top" 
 Else 
 rn = "bottom" 
 End If 
 MsgBox "PivotTable report is showing " & rn & " " & _ 
 .AutoShowCount & " items in " & .Name & _ 
 " field by " & .AutoShowField 
 Else 
 MsgBox "PivotTable report is not using AutoShow for this field" 
 End If 
End With

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.