骗点小分{:soso_e113:}
方法很多,方法之一
Sub DeskTopScreen()
On Error Resume Next
Set WMI = GetObject("Winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set A = WMI.ExecQuery("Select * From Win32_DesktopMonitor")
For Each B In A
w = B.ScreenWidth
H = B.ScreenHeight
MsgBox "屏幕高度:" & H & "屏幕宽度:" & w
Next
End Sub