Created
May 15, 2015 22:55
-
-
Save kumatti1/5925d5bfe086d9ae80ac to your computer and use it in GitHub Desktop.
Eraseステートメント
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare PtrSafe _ | |
Function vbaErase Lib "msvbvm60.dll" Alias "#213" ( _ | |
ByRef arg1 As Variant, _ | |
ByVal arg2 As LongPtr _ | |
) As Long | |
Sub foo() | |
Dim a&(0), b&(0) | |
Dim v | |
v = Array(a, b) | |
Dim ret As Long | |
ret = vbaErase(v, 1041) | |
Debug.Print ret | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment