asked on
Public Function SHA256Hash(strInput As String)
Dim oSHA256 As CSHA256
Set oSHA256 = New CSHA256
SHA256Hash = oSHA256.SHA256(strInput)
Set oSHA256 = Nothing
End Function
=SHA256Hash("Test")
or=SHA256Hash(A1)
ASKER
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
TRUSTED BY
ASKER
Thank you for that, I imported into Excel as a class module, and tried to call the function sha256, which shows #REF ?