EliseFreedman
Programmer
Hi There
I am developing a KPI Dashboard for work.
I am trying to make it versatile so that individual users can customise it to suit their own requirements.
I have added a multiselect listbox with our weeknumbers 1-52. I want the default values to be the current week of the year plus the previous 11 weeks i.e 12 weeks in all.
If the current week is within the first 12 weeks of the year, then the listbox should default to weeks 1-12. Once we get into week 13, the listbox should default to weeks 2-13. Obviously I could just write one big bit of vba i.e If currentweek >0 and < 13, then show 01-12, else if currentweek=13 then show weeks 2-13. This seems awful cumbersome so I was wondering if there was a better way
I am developing a KPI Dashboard for work.
I am trying to make it versatile so that individual users can customise it to suit their own requirements.
I have added a multiselect listbox with our weeknumbers 1-52. I want the default values to be the current week of the year plus the previous 11 weeks i.e 12 weeks in all.
If the current week is within the first 12 weeks of the year, then the listbox should default to weeks 1-12. Once we get into week 13, the listbox should default to weeks 2-13. Obviously I could just write one big bit of vba i.e If currentweek >0 and < 13, then show 01-12, else if currentweek=13 then show weeks 2-13. This seems awful cumbersome so I was wondering if there was a better way