This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
以下代码给出了错误“下标超出范围”:
Sub Workbooks2(str)
Workbooks.Open (ThisWorkbook.path & "\" & str)
Workbooks(ThisWorkbook.path & "\" & str).Close ' <<<<< subscript out of range error
End Sub