明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1381|回复: 0

谁可以解释下这个代码?

[复制链接]
发表于 2012-4-12 22:27:49 | 显示全部楼层 |阅读模式
Dim szly As Boolean
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Call DeleteButton
    Call DeleteMenu
    Call removeMenuItem
End Sub
Private Sub Workbook_Open()
szly = True
Dim s(2) As Date
    s(0) = "2011/7/29"
    s(1) = "2013/3/30"
    If Not (Now >= s(0) And Now <= s(1)) Then
    MsgBox "软件已....."
    On Error Resume Next
   AddIns(filterpath(ThisWorkbook.Name, 4)).Installed = False

   'Name ThisWorkbook.Path & "\" & ThisWorkbook.Name As ThisWorkbook.Path & "\aa" & ThisWorkbook.Name & "zz"
    End
    End If
'''    If Dir("c:\windows\system32\comdlg32.ocx") = "" Then
''''复制当前文件夹下的到此文件夹内,再注册此文件
''''
''''FileCopy ThisWorkbook.Path & "\SYSkj\comdlg32.ocx", "c:\windows\system32\comdlg32.ocx"
'''Shell "regsvr32.exe /s C:\Windows\System32\comdlg32.ocx"
'''End If
    Call CreateButton
    Call CreateMenu
   ' Call addMenuItem
    '''UserForm2.Show ' vbModeless
   

End Sub
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-25 17:22 , Processed in 0.155612 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表