Re: RESOLVED[2 Comboboxes]
I made a mistake. I just forgot to erease a For which I was originally using to fill the comboboxes.
Regarding comboboxes. Do you know how can I introduce items of a particular field in some pivot table?
For the option of the first combobox "1" there are two items (11 and 12) for the second combobox and for the items "2" there are three (21, 22 and 23)
I could use something like this o like the code you showed me:
VB Code:
For i =1 to 3
cbocombobox1.addItem Range("A" & i).Value
Next i
while using 2 for "1" and 3 for "2".
However, suppose I have a pivot table called pivotable.
When combobox1 has the value 2 I have
VB Code:
ActiveSheet.PivotTables("pivotable").PivotFields("combobox1").CurrentPage =1
and the the field will show its 3 items and if I choose value "1" it will show 2 items. So the problem is that the field size change for every particular value of combobox1. Is there some way to specify that I want the combobox to be filled with the whole content of the field, no matter what size it has?