Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm writing a macro to toggle showing or hiding values on data points. It works for a chart with a single expression using
Expressions.Item(0), but I'd like to use it for charts with multiple expressions. In my macro, how can I get a count of how many expressions are in my chart so I can cycle through them with a FOR clause?
Hello Len,
set chart = ActiveDocument.GetSheetObject("CH21")
set cp = chart.GetProperties
n = cp.Expressions.Count
Macros Are not Good Tim.
Len, Yes we can show. Please find attachment for Ref. Hope this helps
Thanks, that worked. The Expressions.count was what I needed.
good to know. please dont Forget to mark this as answered.