EXCEL2013 vba工程密码破解

EXCEL vba工程密码破解
这种方法实际是避开VBA工程密码验证,即,骗vba编辑器,该密码输入成功,请求放行。


原理不多说了,先将方法公布:
===================================================


1.新建一个工作簿,打开,按ALT+F11,进入vba代码编辑器窗口:


2.新建一个模块,“插入”--“模块”把以下代码复制进模块并保存


---------------------------------------------------------------------------------------


Option Explicit


Private Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" _
        (Destination As Long, Source As Long, ByVal Length As Long)


Private Declare Function VirtualProtect Lib "kernel32" (lpAddress As Long, _
        ByVal dwSize As Long, ByVal flNewProtect As Long, lpflOldProtect As Long) As Long
        
Private Declare Function GetModuleHandleA Lib "kernel32" (ByVal lpModuleName As String) As Long
   
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, _
        ByVal lpProcName

你可能感兴趣的:(综合)