PDA

View Full Version : Drag And Zoom Chart Zoomer Add-In



Jason Vint
10-10-2012, 02:50 AM
I know this is a bit old but hopefully this helps someone out. I created this addin 4 years ago that uses a rectangle shape that the user can drag over a chart and it would zoom in on the area. It works for XYscatter type charts and works on any number of series. You can zoom in as much as you want and unzoom all the way back to the initial level. Also has an autofit button. I developed it for Excel 2003 and in 2003 and 2000 it creates icons on the right click subcontext menu but in 2007 and above that was taken out. I also had it create its own toolbar but that was also taken out in 2007 and up. In those versions, the icons are on the add-ins tab on the ribbon when you select a chart. It is somewhat glitchy in 2007 but it still works for me ok and seems to work better in 2010.

https://docs.google.com/open?id=0B47...UlkaWhMOWFRUlk - 2003 version
https://docs.google.com/open?id=0B47...Gw3WE9PWkZmU3M - 2007 and up version

If anyone has any suggestions let me know. And feel free to mod the code to fit your needs just give me credit if you distribute it.

Let me know what you think!

Excel Fox
10-10-2012, 08:17 PM
Jason, this is really good. Would be nice to have someone mod this and have it work for a few other commonly used charts also. But nicely done this one, and thanks for sharing. :cheers:

Jason Vint
10-11-2012, 10:29 PM
Jason, this is really good. Would be nice to have someone mod this and have it work for a few other commonly used charts also. But nicely done this one, and thanks for sharing. :cheers:

Thanks Excel Fox! I just recently upgraded to Excel 2007 so I haven't been able to test much in the newer versions. I have 2010 and 2007 at work now so I've been messing with the code a bit. I already found a glitch in 2007 when using on dual Y axis charts. Here's the fixed version.

jcas
08-02-2013, 02:30 PM
Just a comment
I have realized that, once you zoom-inn a chart, the axis number formatting is changed.
I use a no-decimal format in the original chart and a 3 decimal format appears in the zoomed area.
Any suggestions?
Thank you for your great job
Juan