Vba Declare Api 64 Bit 32 Bit

[Solved] Vba Declare Api 64 Bit 32 Bit | Vb - Code Explorer | yomemimo.com
Question : vba declare api 64 bit 32 bit

Answered by : vastemonde

' At the top of your module: works for both 32 and 64 bits
#If VBA7 Then
Public Declare PtrSafe Function GetVersionExA _	' 64 bits Lib "kernel32" (lpVersionInformation As OSVERSIONINFO) As Integer
#Else Public Declare Function GetVersionExA _	' 32 bits Lib "kernel32" (lpVersionInformation As OSVERSIONINFO) As Integer
#End If

Source : | Last Update : Fri, 29 Jan 21

Answers related to vba declare api 64 bit 32 bit

Code Explorer Popular Question For Vb