Excel: Duplication of sheets with formulas set to manipulate charts


I have been working on a dashboard, that the functionality is developed.  However, I would now like to continue to modify this new code to other sheets in the spreadsheet.

I have been working closely with an expert who has helped me code.  I am looking to have a better understanding of the code. See related post for spreadsheet.

Maliki HassaniAsked:
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.

Ok - here it is for the next sheet. and some explanation on how it all works:

You only needed this change.  Executive Rollup looks at the same ranges as Summary Dashboard, for the Listbox2 control

That would be - Summary_Delta_Range:

Private Sub ListBox2_LostFocus()

    Call UpdateChart_ArrayOnLBLostFocus(ListBox2, "Summary_Delta_Range", "Executive Rollup Data", "Executive Rollup", "Chart 238", True)
    Call UpdateChart_ReviseTitle(ListBox2, "Summary_Delta_Range", "Executive Rollup Data", "Executive Rollup", "Chart 238")
End Sub

Reflect a bit on how all this works, as you move forward...

For you need an UpdateChart_ArrayOnLBLostFocus AND an UpdateChart_ReviseTitle on
the single listbox with columns (recall also that the columnar listbox needs to do
vlookup on the parsed out key, so in this instance, that's still Summary_Delta_Range.

If you were to do this on other charts with different data sheets, youd need to set the
data up JUST LIKE the EXECUTIVE ROLLUP DATA sheet - the keys in the first column at the top,
the columns with different key in the first column on the bottom dataset.

The data ranges set out across the top

and referenced in the bottom.

The option buttons copied from one sheet to another

The option button code copied from a working sheet to the new sheet.

Note I've updated option buttons 1-6 now.

See attached:


PS - at some point, you're going to wonder why when you hit the arrow button, the chart doesn't open when
you click it after having done anything but selected something to chart.
and that's because the listbox lostfocus didn't fire.  If you make a command button macro for each one of these
then you can call the Listbox1_Lostfocus routine.  You can't run that routine OUTSIDE of the SHEET CODEPAGE.

Don't worry, you can make the command button transparent with your arrow "Update" icon in the background.

If you need help, ask another question and I'll walk you through it more detailed than this.

Let's make sure all your questions on what's been done have been answered (before moving to the next problem) then close out.  That way, you've got a documented understanding.


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
Maliki HassaniAuthor Commented:
Beautifully worded.  I understood everything.  I will give it a try!  It fells good when you understand and can teach someone based off of your own knowledge.  Thank you again!!
Maliki HassaniAuthor Commented:


I have 3 sheets functional!  It is looking really good!  Thank you so much..  I do have a several small questions.. Next question is if I can upload this to sharepoint and have full functionality..  One sec!
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Maliki HassaniAuthor Commented:
As always the best help...  You are much appreciated!
As there are no links, you can upload to Sharepoint, if other users are downloading to function.  Not sure if you convert to HTML (haven't messed with that much) how it will work but would like to know.

Maliki HassaniAuthor Commented:
Okay..  Maybe I need to ask this question in the sharepoint section, not in excel.  Thanks..  I do have a question about the following:

PS - at some point, you're going to wonder why when you hit the arrow button, the chart doesn't open when
you click it after having done anything but selected something to chart.

--- I am experiencing that issue and would like to know more..  I will post a question about this, okay?
ok, but read the next sentence as it tells you why.

Maliki HassaniAuthor Commented:
Okay...  Maybe I don't need the question then..  
Just give it a shot and if you have problems - post away.
Maliki HassaniAuthor Commented:
I do have 2 post that are related already  if you want to give them a try..
I only saw one and responded.  Going to do the valentines thing.


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.