1.别人用excel表格做的码商管理系统怎么查看此管理系统的源码?
别人用excel表格做的管理系统怎么查看此管理系统的源码?
如何查看使用Excel表格制作的管理系统的源码?
1. 打开Excel,按下Alt + F键进入VBA编辑器。码商
2. 在VBA编辑器中,码商一刀切源码点击“插入”菜单,码商选择“模块”选项。码商pot直播源码
3. 在新模块中,码商miniblink获取源码复制并粘贴以下代码:
```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. 选择你想查看源码的码商Excel文件,并执行上述代码。码商
6. 代码执行成功后,码商再次按下Alt + F键进入VBA编辑器,码商你应该能够看到该Excel文件的码商VBA源码了。
码商python 词频 源码