my homework, already completed step 1
如何编写计算我拥有的工作簿和工作表数量的代码?每当我放.count
时,它就说不可用
按下f5后会发生这种情况:
所以我有
sub workbookworksheetcount()
Debug.Print worksheet.count
end sub
答案 0 :(得分:-1)
Sub workbookworksheetcount()
Debug.Print Application.Worksheets.Count
End Sub
试用此代码