I have code that on a button_Click() a range of data is copied and pasted into a database. Once this data is pasted to the data base it updates a column (B150:B1000) that are the reference cells for my combobox in a userform gui.
My issue is that the combobox does not update with the new values i enter into the database unless I close the sheet and reopen the sheet. This is a major inconvenience for users.
Below is my code for the combobox, any help with how to update the combobox would be greatly appreciated!!
Private Sub ComboBox1_dropbutt*******()
If ComboBox1 = blank Then
For i = 151 To 161
ComboBox1.AddItem Sheets("Geometry").Cells(i, 2)
Next
End If
End Sub
My issue is that the combobox does not update with the new values i enter into the database unless I close the sheet and reopen the sheet. This is a major inconvenience for users.
Below is my code for the combobox, any help with how to update the combobox would be greatly appreciated!!
Private Sub ComboBox1_dropbutt*******()
If ComboBox1 = blank Then
For i = 151 To 161
ComboBox1.AddItem Sheets("Geometry").Cells(i, 2)
Next
End If
End Sub