10-28-2015 01:28 AM
Hello,
i Want to delete Second Y Axis from my report template via code. Because for one report i need 2 y axis. for other report i need only one axis, so i want to delete the second axis.
i tried GraphObjDelete Command it did not work.
Please help.
Thanks
Sunil Padikar M
Solved! Go to Solution.
10-28-2015 01:58 AM
Hi
Here is the script code:
Dim o2DAxisYList
Set o2DAxisYList = Report.Sheets("Page 1").Objects("2DAxis1").YAxisList
msgbox o2DAxisYList.Count
if o2DAxisYList.Count > 1 then
o2DAxisYList.Remove(2)
end if
msgbox o2DAxisYList.Count
Greetings
Walter
10-28-2015 02:39 AM
Hello Walter ,
Thanks for your reply. It solved my problem. 🙂