Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1000 Seperator
#15
The way Jacob posted is 5x faster than my own hand written one Tongue

So I adapted to it!

Code:
Public Function FormatNumber(ByVal Number As Currency) As String

    If InStr(1, Number, ".", vbTextCompare) Then
        FormatNumber = Format$(Number, "###,###,###,###,###.####")
    Else
        FormatNumber = Format$(Number, "###,###,###,###,###")
    End If
    
End Function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)