I'm trying to call the GUIDFromString Access function from Excel.
Dim accessApp
Set accessApp = CreateObject("Access.Application")
accessApp.OpenCurrentDatabase (ThisWorkbook.Path & "\" & "DB.accdb")
MsgBox accessApp.GUIDFromString("PassingAString")
accessApp.Quit
Set accessApp = Nothing
I've tried different things but all generate an error. The above is generating:
ActiveX component can't create object
(https://msdn.microsoft.com/en-us/vba/access-vba/articles/application-guidfromstring-method-access)
EDIT: I just came across this post (Password hash function for Excel VBA), using the code from Chris for my purposes.