Hello
I was wondering how to get screen resolution with VBA
I found a solution on StackOverFlow
But I get run-time error 453. Access can't find entry point GetSystemMetrics in User 32.
I am using Ms Access 2013 and Ms Access 2016
I was wondering how to get screen resolution with VBA
I found a solution on StackOverFlow
Declare Function GetSystemMetrics32 Lib "User32" Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long
Sub ScreenRes()
Dim w As Long, h As Long
w = GetSystemMetrics32(0) ' width in points
h = GetSystemMetrics32(1) ' height in points
End Sub
But I get run-time error 453. Access can't find entry point GetSystemMetrics in User 32.
I am using Ms Access 2013 and Ms Access 2016
Last edited: