Rayne
asked on
Pivot Chart - crtx within display file?
Hello,
Currently, this is what is happening. There is a network folder which has two files - a xlsm file that has several pivots and pivot charts in it. There is also a crtx template file in the same location,which
stores the chart template style. Now when users refresh the charts in the xlsm files, it gets a weird format and extra text in the chart.
Thats why when they press a button - then the charts in the existing xlsm file, get a stored template applied to them, to maintain the chart look as desired.
Problem - right now the code you see is below:
is there is any way that I could put the template or embed the template directly inside the xlsm file itself (that has all the pivots and charts?)
-Instead of storing the crtx file separately and then applying template from it into the xlsm file?
thank you
Currently, this is what is happening. There is a network folder which has two files - a xlsm file that has several pivots and pivot charts in it. There is also a crtx template file in the same location,which
stores the chart template style. Now when users refresh the charts in the xlsm files, it gets a weird format and extra text in the chart.
Thats why when they press a button - then the charts in the existing xlsm file, get a stored template applied to them, to maintain the chart look as desired.
Problem - right now the code you see is below:
set wks = activesheet
templateLoc = "network\kkk\myChartTemplate.crtx"
wks.ChartObjects("myDisplayChart").Activate
ActiveChart.ApplyChartTemplate (templateLoc)
is there is any way that I could put the template or embed the template directly inside the xlsm file itself (that has all the pivots and charts?)
-Instead of storing the crtx file separately and then applying template from it into the xlsm file?
thank you
ASKER
Hello Gowflow,
this is my whole code. the lines above are repeated 4 times to apply templates to four pivot charts - makes sense ?
this is my whole code. the lines above are repeated 4 times to apply templates to four pivot charts - makes sense ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Gowflow,
got it. I have uploaded the test file. It would not let me upload a crtx template file. you can easily create one I guess, from the existing one there.
Rayne
samplechartFile.xlsm
got it. I have uploaded the test file. It would not let me upload a crtx template file. you can easily create one I guess, from the existing one there.
Rayne
samplechartFile.xlsm
I don't understand. You accepted my comment as a solution and you posted the file afterward. Did you find the solution or still need help which I presume you do.
In case you still need help you need to tell me how create the crtx template from the file you posted as total newbie in this area.
gowflow
In case you still need help you need to tell me how create the crtx template from the file you posted as total newbie in this area.
gowflow
gowflow