标题: 格式代码公布 [打印本页] 作者: zhuzz 时间: 2010-8-2 16:14 标题: 格式代码公布 Public yunxu As Integer
Dim filepath As String
Dim filepath1 As String
Dim fs, myfile As Object
Dim MyDate, fixdate As Date
Dim p1, p2, p3, p4, p5 As String
Dim dd As Integer
Dim Myx As New EventClassModule
Private Sub Register_Event_Handler()
Set Myx.App = Word.Application
End Sub
If CInt(p4) < 1500 And CInt(DateDiff("d", p1, MyDate)) < 150 Then
yunxu = 1
Else
yunxu = 0
MsgBox "试用期已过"
End If
End Sub
Private Sub er1()
On Error GoTo m1
Set myfile = fs.CreateTextFile(filepath) '创建文本对象,如果该文件已经存在,会产生错误
myfile.Close
Exit Sub
m1:
dd = dd + 1
End Sub
Private Sub er2()
On Error GoTo m2
Set myfile = fs.CreateTextFile(filepath1) '创建文本对象,如果该文件已经存在,会产生错误
myfile.Close
Exit Sub
m2:
dd = dd + 2
End Sub