I was hoping to do something below to a headcount pivotable report I develped
For x = 6 To ENOPT
If IsEmpty(Cells(x, 7)) = False And IsEmpty(Cells(x, 4)) = True Then
b = ActiveSheet.PivotTables("SalTa1").PivotFields("POSN_TITLE").PivotItems( _
Cells(x, 6)).Position
ActiveSheet.PivotTables("SalTa1").PivotFields("POSN_TITLE").PivotItems( _
Cells(x, 6)).Position = b - 1
End If
Next x
But it is not working
What I want to do is
If my if statemtment triggers action I want to click on cell (x,6) and move it up one positon.
For x = 6 To ENOPT
If IsEmpty(Cells(x, 7)) = False And IsEmpty(Cells(x, 4)) = True Then
b = ActiveSheet.PivotTables("SalTa1").PivotFields("POSN_TITLE").PivotItems( _
Cells(x, 6)).Position
ActiveSheet.PivotTables("SalTa1").PivotFields("POSN_TITLE").PivotItems( _
Cells(x, 6)).Position = b - 1
End If
Next x
But it is not working
What I want to do is
If my if statemtment triggers action I want to click on cell (x,6) and move it up one positon.