excel - How to create new Row Labels in PivotTable with data from olapcube with vba? -


i have pivotfield rowfield. contains dates in format dddd, mmmm dd yyyy string, because unable filter date .pivotfilters.add type:=xlvalueisbetween or .pivotfilters.add type:=xldatebetween, etc. if want know journey conclusion, find here .

now new plan create new rowlabel has date in double format , filter there date.

with following code works convert long format double format , can overwrite i.caption value. .pivotfilters.add won't work configuration also.

for each in .pivotitems     debug.print i.caption        'in format dddd, mmmm dd yyyy      p = i.caption     u = split(p, ",")(1)     debug.print cdate(u)         'e.g. 04/09/2017     i.caption = cdbl(cdate(u))   'here should new rowlabel should filled                 next 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -