Hi
sht = Me.ComboBox15.ValueIf Sheets(sht).Cells(i, "A").Value = (sht) Or _
Sheets(sht).Cells(i, "A").Value = productCode Then
Me.TextBox13 = Format(Sheets(sht).Cells(i, "C").Value, "0.00")
I have the above Syntax that looks up a value on a worksheet, it works fine, but I would like to substitute the "C" (column reference) for this dynamic nested If statement:
If ComboBox5 = "closed top" Then
TextBox100 = "C"
ElseIf ComboBox5 = "open top" Then
TextBox100 = "D"
ElseIf ComboBox5 = "over height" Then
TextBox100 = "E"
ElseIf ComboBox5 = "Jumbo" Then
TextBox100 = "F"
End If
Thanks for any help!!
sht = Me.ComboBox15.ValueIf Sheets(sht).Cells(i, "A").Value = (sht) Or _
Sheets(sht).Cells(i, "A").Value = productCode Then
Me.TextBox13 = Format(Sheets(sht).Cells(i, "C").Value, "0.00")
I have the above Syntax that looks up a value on a worksheet, it works fine, but I would like to substitute the "C" (column reference) for this dynamic nested If statement:
If ComboBox5 = "closed top" Then
TextBox100 = "C"
ElseIf ComboBox5 = "open top" Then
TextBox100 = "D"
ElseIf ComboBox5 = "over height" Then
TextBox100 = "E"
ElseIf ComboBox5 = "Jumbo" Then
TextBox100 = "F"
End If
Thanks for any help!!