Hi,
I'm new here in this forum,but what i've seen until now is the best i ever found in the web.
Here my question:
in VBA Excel 2010 i get the RowItem of a selected Cell within the pivot table with this
MsgBox "Info: " & ActiveCell.PivotCell.RowItems(1)
BUT
when i select not a data cell, but for example the "header", i mean the first cell in the respective row i got an error because PivotCell doesn't work here.
What is the correct code to get the right value?
I now that this should be possible, because when you go with the cursor over the cell, you get the mouseover info with the exact correct value.
I would be very grateful if anybody could help me with my issue.
Thanks a lot and greatings from germay!
Alexander
I'm new here in this forum,but what i've seen until now is the best i ever found in the web.
Here my question:
in VBA Excel 2010 i get the RowItem of a selected Cell within the pivot table with this
MsgBox "Info: " & ActiveCell.PivotCell.RowItems(1)
BUT
when i select not a data cell, but for example the "header", i mean the first cell in the respective row i got an error because PivotCell doesn't work here.
What is the correct code to get the right value?
I now that this should be possible, because when you go with the cursor over the cell, you get the mouseover info with the exact correct value.
I would be very grateful if anybody could help me with my issue.
Thanks a lot and greatings from germay!
Alexander