

Although our formatting is lose, which can certainly improve.And wrap it around IFERROR function for turning off the errors to 0.I will apply a simple INDEX formulato pull up years from sheet 1.Right Click on the Shapes and go to Assign Macroīut we don’t have the years displayed yet.Now Simply Link the Scroll-bars to the Macros And then click on Module (Module is the place where we write macros).Go to the Developer Tab (Press Alt + F11 if you cannot find it).If <= 41 Then = + 1Ĭopy and paste both these macros in the VBA Window. Marco for Right Scroll-Bar Sub custom_scroller_right() Macro for Left Scroll-Bar Sub custom_scroller_left()
Why is the scroll bar missing in excel code#
To apply this logic to the Scroll-bars (that we have made), we need 2 tiny bits of code If the highlighted year is 1 then the previous two cells should be blank.If the highlighted year is 42 then the next two cells should be blank.The highlighted year (as of now 20), can go up to 42 and can go down till 1.There are 42 data points (from 1975 to 2016), correct?.Before we even do that, let me give you a bigger picture first. Now that we have our scrollbars ready, our next job is to link them to the numbers in Sheet 2.

Related : Learn various shapes/objects related shortcuts We can definitely format them more, but for now they are good to go!
