Pivottable woes
问题 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 along with a break to show where I am having a problem: Sub CreatePivot() ' Define RngTarget and RngSource as Range type variables Dim RngTarget As Range Dim RngSource As Range Dim intLastCol As Integer Dim intLCPivot As Integer Dim intLRPivot As Integer Dim intCntrCol As Integer Dim intX, intY As Integer Dim ws1, ws2 As