Needs some VBA help

Maxim_G

New Member
Joined
Dec 8, 2012
Messages
3
Hey guys, I'm having a bit of a problem since I'm a VB noobie.

I have several raws for different categories (lets say 4 categories:

1- Capex
2 - Opex
3 - Tax
4 - Dep, for example)

In each category, I have some raws for some sub-categories (lets say 3 for each:
1.1- machinery, 1.2-computers , 1.3-deliniation, for example
2.1 , 2.2 , 2.3
3.1 , 3.2 , 3.3
4.1 , 4.2 , 4.3)

and I have some raws for sub-sub-categories (lets say 2 for each:
1.1.1- cars, 1.1.2-tank & 1.2.1- PC , 1.2.2- laptop & 1.3.1-drill , 1.3.2-seismic, for example
2.1.1 , 2.1.2 & 2.2.1 , 2.2.2 & 2.3.1 , 2.3.2
3.1.1 , 3.1.2 & 3.2.1 , 3.2.2 & 3.3.1 , 3.3.2
4.1.1 , 4.1.2 & 4.2.1 , 4.2.2 & 4.3.1 , 4.3.2)

I want to be able to Plot each category vs. time (e.g., CAPEX vs. Yr), each sub-category vs. time (Machinery vs. Yr) and each sub-sub-category vs. time (e.g., cars vs. Yr)

So, I would like to

1- add checkboxes for each category and sub-category and sub-sub-category and assigne them to a macro
2- whenever the checkbox is checked, the data of the range should be selected and stored in a range variable,

AND

the values of the selected range must added to the values of another defined variable (e.g., sum) and
3- the graphs can be ploted.

Is this possible?

Thanks in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
after 27 views with no replys I think you may need to re-write for people who aren't exposed to the data you are trying to deal with... ( as in where's the Year data??) maybe use one of excel loading tools or do a mock up of your intended end result
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top