I have a Userform.
It contains a ListBox and a ComboBox and a TextBox (.enable=false)
The Listbox has a control source called CaseChoice which is a static rangename =$AO$1
The TextBox has a control source of CaseChoice as well
The ComboBox has a control source named EntryItem which is a dynamic rangename =offset(ItemChoice,0,CaseChoice)
ItemChoice is a static rangename=$AO$16.
So the CaseChoice has a value of 4, say, when I load the UserForm.
The TextBox shows 4 - good
I select the third item in the listBox
The TextBox shows 3 which is good
I change the ComboBox value.
And offset(ItemChoice,0,4) gets changed - not offset(ItemChoice,0,3) - which is bad.
So it looks like the dynamic range name is not being refreshed during the time that the UserForm is Loaded and shown when the CaseChoice cell is changed.
What am I missing or doing wrong?
How do I refresh the dynamic rangename?
Regards
Brian
It contains a ListBox and a ComboBox and a TextBox (.enable=false)
The Listbox has a control source called CaseChoice which is a static rangename =$AO$1
The TextBox has a control source of CaseChoice as well
The ComboBox has a control source named EntryItem which is a dynamic rangename =offset(ItemChoice,0,CaseChoice)
ItemChoice is a static rangename=$AO$16.
So the CaseChoice has a value of 4, say, when I load the UserForm.
The TextBox shows 4 - good
I select the third item in the listBox
The TextBox shows 3 which is good
I change the ComboBox value.
And offset(ItemChoice,0,4) gets changed - not offset(ItemChoice,0,3) - which is bad.
So it looks like the dynamic range name is not being refreshed during the time that the UserForm is Loaded and shown when the CaseChoice cell is changed.
What am I missing or doing wrong?
How do I refresh the dynamic rangename?
Regards
Brian