ianb
Member
Sheet 2 has the data as an example :
Jan-12
Feb-12
Mar-12
etc
Combo Box has reference to these cells and the list index is as follows
Jan-12 is 1
Feb-12 is 2
Mar-12 is 3
I can run a vba program to set to the .listindex = 1 as it is Jan-12 at present
Sheets("Dashboard").DropDowns("Drop Down 1").ListIndex = 1
Input Range 'Month'!$A$2:$A$79
A2 = Jan-12
A3 = Feb-12
etc
Linked Cell = $A$6
=INDEX('Month'!$b$2:$b$37,$A$6)
The Forumla will let me produce a chart that when the combo box is changed manaully that will show that months chart. I need to have this set to this month and the vba program will update on a schedule to keep all combo boxes set to this month !!!
If changed I run and will set to this month.
When it is Feb I have to change my program to .ListIndex = 2
Would like this automated via a vba script with I have and not have to chnage each month before running.
How can I set all the combo boxes to the month at present.
I have the same for pivot tables which I have solved
CurrentPage = Format(Now, "mmm-yy")
If any one can solve this it will make me one happy bunny !!!
Jan-12
Feb-12
Mar-12
etc
Combo Box has reference to these cells and the list index is as follows
Jan-12 is 1
Feb-12 is 2
Mar-12 is 3
I can run a vba program to set to the .listindex = 1 as it is Jan-12 at present
Sheets("Dashboard").DropDowns("Drop Down 1").ListIndex = 1
Input Range 'Month'!$A$2:$A$79
A2 = Jan-12
A3 = Feb-12
etc
Linked Cell = $A$6
=INDEX('Month'!$b$2:$b$37,$A$6)
The Forumla will let me produce a chart that when the combo box is changed manaully that will show that months chart. I need to have this set to this month and the vba program will update on a schedule to keep all combo boxes set to this month !!!
If changed I run and will set to this month.
When it is Feb I have to change my program to .ListIndex = 2
Would like this automated via a vba script with I have and not have to chnage each month before running.
How can I set all the combo boxes to the month at present.
I have the same for pivot tables which I have solved
CurrentPage = Format(Now, "mmm-yy")
If any one can solve this it will make me one happy bunny !!!