Dynamic Graph VBA

Mitchell Clarke

New Member
Joined
Jun 20, 2017
Messages
5
Hi All,

I am relatively new to excel and the world of VBA! one of my current roles is to take a years worth of data and turn it into graphs representing the 4 quarters of the year. At the moment this means I have to go in and select the data range from the master sheet for each of the 4 graphs to check that a quarter is visible on each graph. There are 48 time points per each day of the data.

Is there anyway I can use VBA to determine what data needs to go in the four graphs based on 3 months of the year for each graph.

The issue I face is that the start and end dates are not always the same, I have got it to work if the start and end dates are the same but not sure how to use the code to automatically detect which 3 months should go on the graphs.

I.e Graph 1 - months 1-3 of the data
graph 2 - months 4-6 of the data
graph 3 - months 7-9 of the data
Graph 4 - Months 10-12 of the data.

Any help would be much appreciated.

Thanks in advance.

Mitchell Clarke
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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