I have a formula:
=" (3) The cash sales price of the leased property is "&TEXT(L19,"$###,###.##")
And I need the $###,###.## to be underlined.
I right clicked on the sheet name and clicked on View Code and inserted
Private Sub Worksheet_Change(ByVal Target As Range)
Dim s1 As String, s2 As String
' only if L19 changes
If Target.Address <> "$L$19" Then Exit Sub
' write the text in N1
s1 = " (3) The cash sales price of the leased property is "
s2 = s1 & Range("L19") & s2
End Sub
But how do I add the underline to only the $###,###.## part? I tried taking it to another cell formatted for underlining but it wasn't underlined when I added it to the text.
Can it be done?
=" (3) The cash sales price of the leased property is "&TEXT(L19,"$###,###.##")
And I need the $###,###.## to be underlined.
I right clicked on the sheet name and clicked on View Code and inserted
Private Sub Worksheet_Change(ByVal Target As Range)
Dim s1 As String, s2 As String
' only if L19 changes
If Target.Address <> "$L$19" Then Exit Sub
' write the text in N1
s1 = " (3) The cash sales price of the leased property is "
s2 = s1 & Range("L19") & s2
End Sub
But how do I add the underline to only the $###,###.## part? I tried taking it to another cell formatted for underlining but it wasn't underlined when I added it to the text.
Can it be done?