Hi again,
I try to change minus value to positive and positive to minus , but the problem minus value doesn't change to positive value in Label4 on userform as bold in line, how I fix that,please?
I try to change minus value to positive and positive to minus , but the problem minus value doesn't change to positive value in Label4 on userform as bold in line, how I fix that,please?
Rich (BB code):
Private Sub ComboBox1_Change()
I
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)
Label4.Caption = Format(Cells(lRow, 5).Value, "#,##0.00#")
End If
If Label4.Caption < 0 Then Label4.Caption = Label4.Caption * -1
If Label4.Caption > 0 Then Label4.Caption = Label4.Caption * -1
Label4.Caption = Format(Label4.Caption, "#,##0.00")
End Sub