2011年1月6日星期四

在Office中判断打开文件的数量

 

excel中的判断

If Workbooks.count = 0 Then
        Exit Sub
End If

 

word中的判断

If Documents.count = 0 Then
        Exit Sub
End If

没有评论:

发表评论