Hello all,
I have a dynamic chart where I show the last 13 values in a spreadsheet
column. I also
implemented a slider bar so that I can go back and have a look at the
previous values if I want.
However, if I now daily update the column of data through an automated
process and the chart
shifts along dynamically, how do I also update the format controls of the
slider bar using VBA automatically,
that is, how do I adjust the maximum value of the format control as soon as
a new value is added to the spreadsheet?
Hope someone can help, thanks you.
Milos.
Hi,
Depending on which type of slider you have used this syntax, with
appropriate modifications, should do it.
' Scrollbar from FORMS toolbar
ActiveSheet.Shapes(quot;Scroll Bar 1quot;).ControlFormat.Max = 20
' Scrollbar from CONTROLS TOOLBOX toolbar
ActiveSheet.Shapes(quot;ScrollBar1quot;).OLEFormat.Object. Object.Max = 20
Cheers
Andy
Milo wrote:
gt; Hello all,
gt;
gt; I have a dynamic chart where I show the last 13 values in a spreadsheet
gt; column. I also
gt; implemented a slider bar so that I can go back and have a look at the
gt; previous values if I want.
gt; However, if I now daily update the column of data through an automated
gt; process and the chart
gt; shifts along dynamically, how do I also update the format controls of the
gt; slider bar using VBA automatically,
gt; that is, how do I adjust the maximum value of the format control as soon as
gt; a new value is added to the spreadsheet?
gt;
gt; Hope someone can help, thanks you.
gt; Milos.
--
Andy Pope, Microsoft MVP - Excel
www.andypope.info
- May 27 Tue 2008 20:44
Make dynamic charts more dynamic
close
全站熱搜
留言列表
發表留言