阅读背景:

测试或检查表是否存在

来源:互联网 
Dim wkbkdestination As Workbook
Dim destsheet As Worksheet

For Each ThisWorkSheet In wkbkorigin.Worksheets 
    'this throws subscript out of range if there is not a sheet in the destination 
    'workbook that has the same name as the current sheet in the origin workbook.
    Set destsheet = wkbkdestination.Worksheets(ThisWorkSheet.Name) 
Next
Dim wkbkdestination As Workbook
Dim destsheet A



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: