Chart In Excel

Hi Experts,

i have one file in which i can zoom chart by clicking buttons i.e. add display days
is there any way to scroll chart by adding other two buttons? i.e chart move horizontally with same numbers of days .

see attached

Thanks
LT--1-.xlsm
LVL 8
Naresh PatelTraderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ThomasMcA2Commented:
The macros for those buttons live in your personal.xlsb file (or maybe in some other local file).  That means I cannot view the VBA code that they use. Either copy and paste that code into your reply, or attach the file that stores the macros.
0
Naresh PatelTraderAuthor Commented:
This is follow-up question of my previous question and if there is macro then it must be in this file only.

Just take a look.


Thanks
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

no macro needed. I put in a slider that puts a number into cell E2, which is obscured by the slider. This value is added to the first date of your source data. Click the arrow to change by one day, click the space between the arrows to change by 7 days.

Note: When you slide further than today's date, there will be an error message, because there is no data to show.

I also changed the chtLabels formula to do an approximate lookup, so that missing dates won't result in errors. The formula is now:

=INDEX(Data!$A:$A,MATCH(StartDate,Data!$A:$A,1)):INDEX(Data!$A:$A,MATCH(StartDate,Data!$A:$A,1)+DaysInChart)

cheers, teylyn
LT--1-.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Naresh PatelTraderAuthor Commented:
Thank You Very Much ...

Question
A) Wont be able to see more than 50 days in chart i.e. I had clicked many times but cell H5 stopped at 50 ..it is not going beyond.

B)
Click the arrow to change by one day, click the space between the arrows to change by 7 days.

This is not working on my machine. it dint happens in my machine. This is because of my excel version or my machine processor? I am using MS 2010 and processor 2.16 Ghz.

All that happens in chart is without MACRO? If yes then quite interesting.


Thanks
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
No, I mean the space to the left and right of it. Don't know what it is called.

You can also drag the thing you highlighted. I used XL 2013 for this, but the technique works in all versions that have these form controls. Format the control and link it to a worksheet cell. Then you can grab the number in that cell and do things with it, like calculating an offset or the number of rows in a range.

And yes, I limited the spinner control to a maximum value of 50. You can change that by right-clicking the spinner and selecting "Format Control". This is where all the magic happens without VBA.

screenshot
I'm not in front of Excel 2010 right now. I'll try the file with 2010 tomorrow and will post a version that will work in 2010.

cheers, teylyn
0
Naresh PatelTraderAuthor Commented:
No Need Madam. it is working...just clicked exactly where you said & it is all good.

Thank You
0
Naresh PatelTraderAuthor Commented:
Excellent
0
Naresh PatelTraderAuthor Commented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.