Hi,
I have a code for listbox with textboxes.
how can I format the box to $ currency by adding this line of code to each box that has dollar amount, I would like to add this line of code:
to this code: (Bold and red colour)
thanks.
I have a code for listbox with textboxes.
how can I format the box to $ currency by adding this line of code to each box that has dollar amount, I would like to add this line of code:
Code:
" & Format(Range("E").Value, "$#,##0.00;($#,##0.00)")
to this code: (Bold and red colour)
Code:
Private Sub ListBox_Results_Click()'Go to selection on sheet when result is clicked
Dim strAddress As String
Dim l As Long
For l = 0 To ListBox_Results.ListCount
If ListBox_Results.Selected(l) = True Then
strAddress = ListBox_Results.List(l, 1)
ActiveSheet.Range(strAddress).Select
'Populate textboxes with results
With ActiveSheet
[COLOR=#ff0000][B] f_FindAll.TextBox_Results1.Value = .Cells(.Range(strAddress).Row, 5).Value[/B][/COLOR]
[COLOR=#ff0000][B] f_FindAll.TextBox_Results2.Value = .Cells(.Range(strAddress).Row, 4).Value[/B][/COLOR]
[COLOR=#ff0000][B] f_FindAll.TextBox_Results3.Value = .Cells(.Range(strAddress).Row, 1).Value[/B][/COLOR]
End With
GoTo EndLoop
End If
Next l
EndLoop:
thanks.