"vba windows version" Code Answer's
You're definitely familiar with the best coding language VBA that developers use to develop their projects and they get all their queries like "vba windows version" answered properly. Developers are finding an appropriate answer about vba windows version related to the VBA coding language. By visiting this online portal developers get answers concerning VBA codes question like vba windows version. Enter your desired code related query in the search bar and get every piece of information about VBA code related question on vba windows version.
vba windows version
Private Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * 128
End Type
' API declaration (both 32 and 64 bits)
#If VBA7 Then
Public Declare PtrSafe Function GetVersionExA _
Lib "kernel32" (lpVersionInformation As OSVERSIONINFO) As Integer
#Else
Public Declare Function GetVersionExA _
Lib "kernel32" (lpVersionInformation As OSVERSIONINFO) As Integer
#End If
Function getVersionWindows() As String
Dim osInfo As OSVERSIONINFO
Dim iVersionExa As Integer
With osInfo
.dwOSVersionInfoSize = 148
.szCSDVersion = Space$(128)
iVersionExa = GetVersionExA(osInfo)
getVersionWindows = osInfo.dwMajorVersion & "." & osInfo.dwMinorVersion
End With
End Function
' ------------------------------------------------------------------------------
Sub TestMe()
Debug.Print "Windows version : " & getVersionWindows
End Sub
All those coders who are working on the VBA based application and are stuck on vba windows version can get a collection of related answers to their query. Programmers need to enter their query on vba windows version related to VBA code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about vba windows version for the programmers working on VBA code while coding their module. Coders are also allowed to rectify already present answers of vba windows version while working on the VBA language code. Developers can add up suggestions if they deem fit any other answer relating to "vba windows version". Visit this developer's friendly online web community, CodeProZone, and get your queries like vba windows version resolved professionally and stay updated to the latest VBA updates.