Pivottable woes

后端 未结 1 337
栀梦
栀梦 2021-01-22 15:16

It seems like all of the examples from other people are just like what I already have in my code. But in my case, nothing resolves the problem. So here is the complete code alon

相关标签:
1条回答
  • 2021-01-22 16:10

    If you add this to your script in place of the error'd lines you'll get all their names and add then to the pivot:

    For Each p In pt.PivotFields
        Debug.Print p.Name
        pt.AddDataField p,,xlSum
    Next
    

    I'm sure this will get you over the line. :)

    0 讨论(0)
提交回复
热议问题