Skip to content

Instantly share code, notes, and snippets.

@ahmeti
Last active December 30, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmeti/9e85846215dfa1c3462e2f1dfd2b1a56 to your computer and use it in GitHub Desktop.
Save ahmeti/9e85846215dfa1c3462e2f1dfd2b1a56 to your computer and use it in GitHub Desktop.
''' Hücreye ait yorum bilgisini döndürür.
''' Örnek Kullanım; =getComment(A2)
'''
Function getComment(xCell As Range) As String
On Error Resume Next
getComment = xCell.Comment.Text
End Function
''' Hücredeki değeri değiştirir.
''' A2 = 100,99
''' Örnek Kullanım; =replaceDecimalSep(A2) = 100.99
'''
Function replaceDecimalSep(xCell As Range) As String
On Error Resume Next
replaceDecimalSep = Replace(CStr(xCell.Value), ",", ".")
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment