Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text3.Text = Text2.Text Then
'1.弹出 "是否保存" 提示框
if MsgBox("是否保存?", vbYesNo) = vbYes then '按下YES
'3.Text4.text里的数据值会累加(如果为空,则为"0")
if len(text4.text)=0 then
text4.text = 0
else
text4.text =val(text4.text)+1
end if
'打开 使用操作EXCLE 的方法打开 XLS 文件
Dim ExcelID As Excel.Application '定义对象
Set ExcelID = New Excel.Application '生成新的 Excel 对象
With ExcelID
.Visible = True 'debug
’ .Visible = False '显示EXCEL ,如果不用显示,这里就不显示
.Caption = "应用程序调用 Microsoft Excel" 'EXECL 标题