In another question I see a dollar sign at the end of a excel vba function. I cannot find anywhere what is the impact of this syntax.
How to prevent Excel to use the OS regional settings for date patterns in formulas
Public Function GetFormat$(Cell As Range, Optional ByVal UseLocal As Boolean)
If UseLocal Then
GetFormat = Cell.NumberFormatLocal
Else
GetFormat = Cell.NumberFormat
End If
End Function
I checked, it works, but why ?