We have macro-enabled word documents that we use and recently started receiving this error message. I guess some machines were pushed M365 64 bit instead of 32.
Compile Error:
The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute.
I've updated the following code:
Declare PtrSafe Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Dim ttid As Integer
Dim endt As Single, startt As Single
However, now I am receiving the following error...
Run-time Error '-2147221164 (80040154)'
Class not registered
I was thinking that this might have to do with the references, but am not positive. Any help would be greatly appreciated.