I'm working on a project that uses scroll bars on a worksheet named "Interface" to change the values of cells on another worksheet named "Calculations". Because the final workbook will be used on PCs and Macs I'm using form controls instead of ActiveX.
One thing users set is the projected total % of homes renovated by the end of 2015 and by 2020. In the abstract, the range for either year is between 0% and 50%. But I need to make certain that the % selected for 2020 is at least as large as the % selected for 2015.
My intention was to change the min for the 2020 scroll bar whenever the 2015 scrollbar is changed. Is this possible? As far as I can tell there aren't any events for form controls. I tried creating a sub named Testit in a module and making that the macro for the 2015 scroll bar, but when I set a break point in the Testit, moving the 2015 scroll doesn't seem to trigger Testit. I also tried putting Testit into the code for the worksheet that has the scroll bars, but that didn't do anything.
Even if it did I'm not sure how I'd change the min of the 2020 scrollbar with vba. Would it be with something like:
ActiveSheet.Shapes(Scroll2020).Min =ActiveSheet.Shapes(Scroll2015).Value
Thanks for any light you can shed on this--
One thing users set is the projected total % of homes renovated by the end of 2015 and by 2020. In the abstract, the range for either year is between 0% and 50%. But I need to make certain that the % selected for 2020 is at least as large as the % selected for 2015.
My intention was to change the min for the 2020 scroll bar whenever the 2015 scrollbar is changed. Is this possible? As far as I can tell there aren't any events for form controls. I tried creating a sub named Testit in a module and making that the macro for the 2015 scroll bar, but when I set a break point in the Testit, moving the 2015 scroll doesn't seem to trigger Testit. I also tried putting Testit into the code for the worksheet that has the scroll bars, but that didn't do anything.
Even if it did I'm not sure how I'd change the min of the 2020 scrollbar with vba. Would it be with something like:
ActiveSheet.Shapes(Scroll2020).Min =ActiveSheet.Shapes(Scroll2015).Value
Thanks for any light you can shed on this--