Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Ask me excel (https://www.askmehelpdesk.com/showthread.php?t=736264)

  • Feb 26, 2013, 04:37 AM
    ssuresh1988
    ask me excel
    Hi guys,
    I am created the pivot table on excel file. I want to generate the sum of the pivotitem value of those data. I have coded of the following. But shows error.

    tell me is it correct or not.

    Dim pvtItm As PivotItem


    For Each pvtItm In Worksheets("Pivot7").PivotTables("SamplePivot7").P ivotFields("Parent IOU Name").PivotItems
    ActiveCell.FormulaR1C1 = _
    WorksheetFunction.Sum("=GETPIVOTDATA(""Employee Name"",Pivot7!R1C1,""Project Location"",""Offsite"",""Designation"",""Asst.Syst ems Engineer"",""Parent IOU Name"",& pvtItm.Name)")

    Next

  • All times are GMT -7. The time now is 12:41 AM.