Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
Is there any way that to achieve the scroll bar in line chart should always starts from right side onwards.
Thanks in advance.
Regards,
venkat
via macro.
Set rep = ActiveDocument.GetSheetObject("Document\CH10")
set p = rep.GetProperties
p.ChartProperties.XScrollInitRight = True
rep.SetProperties p
In the Chart properties its found on the presentation tab, The checkbox is called "Reversed" and is positioned below the "Show/Enable X-axis Scrollbar".
hi,
If i filter the data or moved slider position then the macro is not working.
Thanks in advance.
The macro sets the initial postion of the scroll box. Once you start filtering data, the scroll box will change postions as required by the filter.
If you wanted the scroll box to be at the right after each filter, you would need to run the macro every time the data is filtered.
hi, thank for fast response.
Actually i changed slider position and run the macro through button, but it is not moving to right of the chart.
What might be the cause ?
Thanks in advance
You're correct. That API call sets the initial scroll postion. After that, the user controls the scroll bar.
hi,
After changing the slider position, can we make the scroll position should set back to right after leaving the sheet ? So when user come back again to that sheet scroll bar should be visible at right side.
Is this possible ?
Thanks in advance.
Don't think so.
Thank for your participation on this post and sharing your knowledge.
If you got to know that it is possible, please share with me.
Once again thanks.
Regards,
Venkat.