ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¼Ï¯Ãªíµ{¦¡°ÝÃD

¼Ï¯Ãªíµ{¦¡°ÝÃD

µ{¦¡¬ÛÀˬd¼Ï¯Ãªí¤ºªº¸ê®Æ¤º®e
¦ý¹J¨ì¤º®e¬OªÅ¥Õ®É´N·|¥X²{«¬ºA¤£²Å¦X
½Ð°ÝÀ³¦p¦ó­×§ï©O?

Dim Pvttable As PivotTable
Dim pvtitem As PivotItem
Dim Field_Name As String

If Pvttable.PivotFields(Field_Name).PivotItems(pvtitem.Name).Visible = True Then

¥t¥~­Y·Q¨ú®ø¤§«e©Ò¦³ªº¿z¿ï,
°£¤F¨Ï¥ÎFor Each......Next¤§¥~
¦³¨ä¥¦§ó¦n¤èªk¶Ü ?
½Ð¦h¦h«ü±Ð

    For Each pvtitem In Pvttable.PivotFields(Field_Name).PivotItems
        Pvttable.PivotFields(Field_Name).PivotItems(pvtitem.Name).Visible = True
    Next

¦^´_ 1# enoch
¤£¤Ó²M·¡§A°Ýªº¸ò§Ú·Qªº¤@¤£¤@¼Ë
¤U­±¬O§Ú¦b°ê¥~ºô¯¸ª¦¤åª¦¨ì¹Lªº
§Ú¨S¦³¸Õ
¥Lªº¤è¦¡¬O²Ä¤@­Ó¶µ¥ØÅã¥Ü
²Ä2¦U¨ì³Ì«á¤@­ÓÁôÂÃ

§A¥i¥H¦b¨º¤§«á¦A¸É¤@­Ó
²Ä¤@­ÓÁôÂà µM«á§A©T©w­n¬D¿ïªºÅã¥Ü
³o¼Ë´NÀ³¸Ó¥i¥H¹F¨ì§Ö³t¿z¿ï¶µ¥Ø
  1. Dim i As Long
  2. .PivotItems(1).Visible = True
  3. For i = 2 To .PivotItems.Count
  4.     .PivotItems(i).Visible = False
  5. Next
½Æ»s¥N½X
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 1# enoch
¨ú®ø¤§«e©Ò¦³ªº¿z¿ï
Pvttable.ClearAllFilters

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD