Excel 2013 Pivot table won't change current page until navigated to manually -



Excel 2013 Pivot table won't change current page until navigated to manually -

we have little piece of vba code worked ages. essentially:

me.pivottables("apivot").pivotfields("afield").currentpage = "some text"

this worked until excel 2013, line fail unspecific error:

runtime error 5: invalid procedure phone call or argument.

by trial , error figured in excel 2013 cannot navigate pivot table page code until user has navigated page manually using excel interface. user navigates page, navigating page code succeed (until close workbook). in order code able navigate page, first need user go through of them manually.

a workaround changing value of underlying cell instead:

me.pivottables("apivot").pivotfields("afield").currentpage.labelrange.value = "some text"

we forced utilize workaround, feels hackish.

exactly in excel 2013 causes behaviour? there bit 1 needs first in order navigate page (poke something, load info in way etc)?

edit: same problem occurs in office 2016.

excel-vba pivot-table office-2013 office-2016

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -