I've been busting my head on this for two days. I have an ActiveX text box and a data table. When I enter data into the text box I want it to edit the data in the table. However, I want the cell linking to be dynamic based on the customer selected in the dropdown box in $G$2. If I have Customer 1 selected, it should edit $I6, and if Customer 2, then cell $I7. Likewise, when I change the customer in the drop down, the text box data should change to match. I figure I need some sort of match formula built into the range portion of the VBA, but I just can't seem to make anything work.
Here is the code I'm starting with, although it doesn't get me very far. Thx,
Here is the code I'm starting with, although it doesn't get me very far. Thx,
VBA Code:
Private Sub TextBox1_Change()
ActiveSheet.Range("A1") = ActiveSheet.TextBox1.Value
End Sub