Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
I have 20 dynamic charts with scroll bars and I want to avoid manually
adjusting the maximum value each month on the 20 scroll bars. Is there some VBA I could use to do this? Thank you! |
#2
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Don't know if it will work in this case, but a good place to start is with
the macro recorder. Turn it on (Tools | Macro Record new macro...), do whatever it is you want to do to one scrollbar by hand, turn off the recorder, and switch to the VBE. Did XL generate the necessary code? If you are using the controls from the Forms toolbar, it did. If from the Control Toolbox, it probably didn't. -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article .com, Bob@ 1800-mail.com says... I have 20 dynamic charts with scroll bars and I want to avoid manually adjusting the maximum value each month on the 20 scroll bars. Is there some VBA I could use to do this? Thank you! |
#3
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Thank you, that worked. Although there is probably a more elegant way
to write this with a loop, here's what I came up with below. Also, thank you for your great web site. Sheets("6").Select ActiveChart.Shapes("Scroll Bar 6").Select With Selection .Max = .Value + 1 End With Sheets("7").Select ActiveChart.Shapes("Scroll Bar 5").Select With Selection .Max = .Value + 1 End With End Sub Tushar Mehta wrote: Don't know if it will work in this case, but a good place to start is with the macro recorder. Turn it on (Tools | Macro Record new macro...), do whatever it is you want to do to one scrollbar by hand, turn off the recorder, and switch to the VBE. Did XL generate the necessary code? If you are using the controls from the Forms toolbar, it did. If from the Control Toolbox, it probably didn't. -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article .com, Bob@ 1800-mail.com says... I have 20 dynamic charts with scroll bars and I want to avoid manually adjusting the maximum value each month on the 20 scroll bars. Is there some VBA I could use to do this? Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel scroll bars within work books | Excel Worksheet Functions | |||
How do I set a maximum value for the scroll bars in Excel? | Excel Discussion (Misc queries) | |||
Remove Scroll Bars, etc on First Sheet Only | Excel Discussion (Misc queries) | |||
of Named Ranges, Dynamic Charts and scroll bars... | Charts and Charting in Excel | |||
Excel opens saved workbook without tabs or scroll bars showing? | Excel Worksheet Functions |