Skip to content

Instantly share code, notes, and snippets.

@muramoto1041
Created June 4, 2020 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muramoto1041/fbcc5bdab81c43fb4ba93bba0881f3ec to your computer and use it in GitHub Desktop.
Save muramoto1041/fbcc5bdab81c43fb4ba93bba0881f3ec to your computer and use it in GitHub Desktop.
excel_1.vba
#If VBA7 And Win64 Then
'64bit版 Private Declare PtrSafe Function GetWindowRect Lib "user32" (ByVal hWnd As LongPtr, lpRect As RECT) As Long
#Else
'32bit版 Private Declare Function GetWindowRect Lib "user32" (ByVal hWnd As Long, lpRect As RECT) As Long
#End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment