Hi,
I am using event Worksheet Before Double Click, where I double click on cell to open form.
Form is filled by data from row, where the cell was double clicked.
In Form exists ComboBox with specific values, for example:
1) Low
2) Medium
3) High
4) None
I wish to create something like this but it will not work:
How I can get value from cell in that combobox, but to not change list structure of the combobox?
If list structure is {Low, Medium, High, None}, this code below will create {Low, Medium, High, None, Medium} and set Medium as value inside combobox...
So, Idea would be to somehow find value which already exists in combobox and to place it as predefined value.
Do you have an idea how it could be done?
I am using event Worksheet Before Double Click, where I double click on cell to open form.
Form is filled by data from row, where the cell was double clicked.
In Form exists ComboBox with specific values, for example:
1) Low
2) Medium
3) High
4) None
I wish to create something like this but it will not work:
Code:
.Combobox1 = Target.Offset(0,-5)
How I can get value from cell in that combobox, but to not change list structure of the combobox?
If list structure is {Low, Medium, High, None}, this code below will create {Low, Medium, High, None, Medium} and set Medium as value inside combobox...
Code:
.cmbArea.AddItem Target.Offset(0, -3)
.cmbArea.Text = .cmbArea.List(.cmbArea.ListCount - 1)
So, Idea would be to somehow find value which already exists in combobox and to place it as predefined value.
Do you have an idea how it could be done?