Hi All,
I have something rather strange...
my code is:
this works fine for everything apart from for some reason where I put "SINT" as the string for WbsElementEnd I'm not getting any value out, however there is definately applicable data!Function returnExpenditure(projectDefinition, WbsElementEnd, recMonth)
Call getSettingsData
'concatanate the full WBS element from project definition and WBS End Fragment
FullWbsElement = Trim(projectDefinition) & "-" & Trim(WbsElementEnd)
ExpenditureInPeriod = Worksheets(sapPivotLocation).PivotTables(sapPivotName).GetPivotData("Value COCurr", "Per", recMonth, "WBS Element", FullWbsElement).Value
returnExpenditure = ExpenditureInPeriod
End Function
any ideas??
Bookmarks