1.别人用excel表格做的序源管理系统怎么查看此管理系统的源码?
别人用excel表格做的管理系统怎么查看此管理系统的源码?
如何查看使用Excel表格制作的管理系统的源码?
1. 打开Excel,按下Alt + F键进入VBA编辑器。码v码
2. 在VBA编辑器中,源代仿博客网站源码点击“插入”菜单,序源选择“模块”选项。码v码海王芯片网站源码
3. 在新模块中,源代英文微盘源码复制并粘贴以下代码:
```vba
Sub MoveProtect()
Dim FileName As String
FileName = Application.GetOpenFilename("Excel文件(*.xls & *.xla),序源*.xls;*.xla", , "VBA破解")
If FileName = CStr(False) Then
Exit Sub
Else
VBAPassword FileName, False
End If
End Sub
Private Function VBAPassword(FileName As String, Optional Protect As Boolean = False)
If Dir(FileName) = "" Then
Exit Function
Else
FileCopy FileName, FileName & ".bak"
End If
Dim GetData As String * 5
Open FileName For Binary As #1
Dim CMGs As Long
Dim DPBo As Long
For i = 1 To LOF(1)
Get #1, i, GetData
If GetData = "CMG=""" Then CMGs = i
If GetData = "[Host" Then DPBo = i - 2: Exit For
Next
If CMGs = 0 Then
MsgBox "请先对VBA编码设置一个保护密码...", , "提示"
Exit Function
End If
If Protect = False Then
Dim St As String * 2
Dim s As String * 1
Get #1, CMGs - 2, St
Get #1, DPBo + , s
For i = CMGs To DPBo Step 2
Put #1, i, St
Next
If (DPBo - CMGs) Mod 2 > 0 Then
Put #1, DPBo + 1, s
End If
MsgBox "文件解密成功......", , "提示"
Else
Dim MMs As String * 5
MMs = "DPB="""
Put #1, CMGs, MMs
MsgBox "对文件特殊加密成功......", , "提示"
End If
Close #1
End Function
```
4. 按下F5键运行代码。
5. 选择你想查看源码的码v码Excel文件,并执行上述代码。源代
6. 代码执行成功后,序源再次按下Alt + F键进入VBA编辑器,码v码你应该能够看到该Excel文件的源代VBA源码了。
序源白柱指标源码