rjplante
Well-known Member
- Joined
- Oct 31, 2008
- Messages
- 569
- Office Version
- 365
- Platform
- Windows
I have a vertical bar chart that has a bar for each week of the year (52). I have two cells for a start and end date above the chart. In each of the cells is a drop down menu for each month of the year. I also have a third drop down to select Q1-Q4. When the user hits the enter key after selecting the desired quarter, the start and end date fields update to reflect the months contained in the selected quarter.
I want a macro that will adjust the chart so that it displays the number of weeks corresponding to the start and end dates entered into the cells above. Some months have five weeks in them, and some have four. I don't know of a simple way to calculate the number of weeks in the selected months in the current year. If the start and end dates match (March to March), I want the chart to display only the number of weeks in the month of March.
I have three charts and I will have the macro update all three (or refresh all three) to reflect the start and end dates selected.
Thanks for the help on this.
I want a macro that will adjust the chart so that it displays the number of weeks corresponding to the start and end dates entered into the cells above. Some months have five weeks in them, and some have four. I don't know of a simple way to calculate the number of weeks in the selected months in the current year. If the start and end dates match (March to March), I want the chart to display only the number of weeks in the month of March.
I have three charts and I will have the macro update all three (or refresh all three) to reflect the start and end dates selected.
Thanks for the help on this.