I keep getting object undefined on the below line of code?
If Target.PivotCell.RowItems(Target.PivotCell.RowItems.Count).Parent.SourceName = "DEPT_CATEGORY_DESC" Then
GetCategoryLevelData Target, DEPT, CatgGrp, Category
Sheet3.Activate
Exit Sub
End If
just curious, do i need to have below defined in a variable:
Target.PivotCell.RowItems(Target.PivotCell.RowItems.Count).Parent.SourceName
if yes, what type of variable that would be?
If Target.PivotCell.RowItems(Target.PivotCell.RowItems.Count).Parent.SourceName = "DEPT_CATEGORY_DESC" Then
GetCategoryLevelData Target, DEPT, CatgGrp, Category
Sheet3.Activate
Exit Sub
End If
just curious, do i need to have below defined in a variable:
Target.PivotCell.RowItems(Target.PivotCell.RowItems.Count).Parent.SourceName
if yes, what type of variable that would be?