excel - Excel2013/VBA 3dChart RotationX -
i have 3d chart on worksheet , trying make rotate along x-axis using vba. once have can rotate spinner or timer...
the problem threed.rotationx property seems read-only. can set value has no affect on chart , if re-read value still shows zero.
any idea how solve this?
thanks
dim prevvalue integer sub spnchart_change() activesheet.shapes("spnchart").controlformat if .value = 360 .value = 0 else if .value = 0 , prevvalue = 0 .value = 350 end if 'the following line had no effect! activesheet.shapes("chtmain").threed.rotationx = -.value 'this prints 0 debug.print activesheet.shapes("chtmain").threed.rotationx prevvalue = .value end end sub
Comments
Post a Comment