Skip to content

Instantly share code, notes, and snippets.

@kumatti1
Created May 15, 2015 22:55
Show Gist options
  • Save kumatti1/5925d5bfe086d9ae80ac to your computer and use it in GitHub Desktop.
Save kumatti1/5925d5bfe086d9ae80ac to your computer and use it in GitHub Desktop.
Eraseステートメント
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