A user selects from a combobox on a userform a particular department. The user then types in a value into a textbox. I am using this code to add the value to a worksheet to produce a running total. The worksheet contains 2 columns . My problem is that the value is always added to B2 irrespective of the department chosen. B2 represents the runnning total for the first item in the combobox. I’ve done this many times without problems but for some reason I cannot see what the problem is. Help please.
Dim DepAC As Range
Set DepAC = Worksheets(“Sheet1”).Range(“A2:A43”)
DepAC.Find (ComboBox1.Value)
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = ActiveCell.Value + TextBox1.Value
‘ Clear the Text Box
TextBox1.Value = “”