View Single Post
 
Old 07-08-2022, 08:55 AM
Logit Logit is offline Windows 10 Office 2007
Expert
 
Join Date: Jan 2017
Posts: 587
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

The following will add the inches symbol but if the last digit is ZERO, it is dropped from the number even though the column is formatted to FOUR DIGITS after the decimal.


Code:
Sub InsertQuotes()
    Dim arr() As Variant, i As Long
    arr = Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row)
    For i = LBound(arr) To UBound(arr)
        arr(i, 1) = arr(i, 1) & """"
    Next i
    Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row).Value = arr
End Sub
Reply With Quote