Hello. Have a very interesting problem where when I invoke the _Change event on an ActiveX control. The change event works fine up until the point where I refresh any external data range within my Excel spreadsheet.
Below is my _Change event that is setup for an ActiveX combo box control called RunByComboBox.
Private Sub RunByComboBox_Change()
SupplierNameTextBox.Enabled = False
This code works perfectly fine up until the point where I refresh an external data range with my spreadsheet. Whenever I refresh a data range (any data range) I receive the following vba error message:
"Runtime error '1004'. Unable to set the Enabled property of the OLEobject class".
When I attempt to debut it takes me to the "SupplierNameTextBox.Enabled = False" line in my vba code.
Does anyone know why I'm getting this error message on data refresh? The data I'm refreshing is in no way related to the combo box or text box in question. Also, for note this error message only occurs when I use the _Change or _Click events. All other events are OK. Unfortunately, I need the _Change event to work.
Any insight is greatly appreciated.