Private Declare PtrSafe Sub PutMem4 Lib "msvbvm60" (Destination As Any, value as Any)
PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr
Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
The macro runs fine in Office2013 and it has problem in Office2019 & windows 64 bit system. The error shows that "msvbvm60" is not found. I googled some information and found that it is related to Windows 32bit and 64 bit system. The runtime file "msvbvm60.dll" is not supported by 64 bit system.
Is there any Sub in Windows 64 bit that I can use to replace this line of code?
PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr
It seems like the function of "PutMem4" is to store the file in memory and then read from the memory and put it into a output string variable? (I might not be correct)
Thank you very much for any input!
Bookmarks