Private Sub cercaprezzo()
SchedaArticoli.Hide
Cells(ActiveCell.Row, 4).Formula = SchedaArticoli.ComboBox2.Text
Cells(ActiveCell.Row, 6).Select
Selection.Formula = "=cerca.vert(rc4;Articoli!r1:r1000;3;0)"
Cells(ActiveCell.Row, 8).Select
Selection.Formula = "=cerca.vert(rc4;Articoli!r1:r1000;5;0)"
ActiveSheet.TextBox3.Text = Cells(ActiveCell.Row, 8)
Cells(ActiveCell.Row, 1).Select
Cells(ActiveCell.Row, 5).Select
If ActiveSheet.TextBox3.Text <> "" Then ActiveSheet.TextBox3.BackColor = &HFF00&
If ActiveSheet.TextBox3.Text = "" Then ActiveSheet.TextBox3.BackColor = &H80C0FF
End Sub
|