D
Diego
Hi!
i have the next code:
Set oDetCell = oSel.BottomRight
lRowNum = oDetCell.Row
lColNum = oDetCell.Column
With PivotTable1.ActiveData
Set oCell = .Cells(.RowMembers(0), .ColumnMembers(0))
End With
oCellValue = oCell.DetailCells(lRowNum, lColNum)
i'm trying to get the value of the cell selected by the
user, but this code generate me an error that says
Subscript out of range .
Does anybody knows how to fix it?
thanks
i have the next code:
Set oDetCell = oSel.BottomRight
lRowNum = oDetCell.Row
lColNum = oDetCell.Column
With PivotTable1.ActiveData
Set oCell = .Cells(.RowMembers(0), .ColumnMembers(0))
End With
oCellValue = oCell.DetailCells(lRowNum, lColNum)
i'm trying to get the value of the cell selected by the
user, but this code generate me an error that says
Subscript out of range .
Does anybody knows how to fix it?
thanks