I have this code and I would show number format in label4 after select item from combobox1 ,but will shows error object required !
!
how fix it,please?
VBA Code:
Format(Label4.Caption, "#,##0.00#") = Cells(lRow, 5).Value
how fix it,please?
VBA Code:
Private Sub ComboBox1_Change()
If ComboBox1.ListIndex = -1 Then Exit Sub
If ComboBox1.Value <> "" Then
Dim lRow As Integer
lRow = Application.Match(ComboBox1.Value, Sheets("CUSS").Range("B:B"), 0)
Format(Label4.Caption, "#,##0.00#") = Cells(lRow, 5).Value
End If
End Sub