Sub SheetAdd()
'
' SheetAdd Macro
'
Dim wkIMP As Workbook ' Workbook 是什么数据类型?
Dim wkshtTongKun As Worksheet, sT As Worksheet ' Worksheet 是什么数据类型?
Dim sNewSheet As String '
sNewSheet = sData
Set wkIMP = Workbooks("Statistical Analysis") ' Set ...什么意思,为什么运行到这一行时提示“下标越界(错误 9)”
DoEvents ' 帮助里说的是指返回给系统,在这里到底有什么作用?
Set wkshtTongKun = wkIMP.Sheets.Add
wkshtTongKun.Name = CStr(sNewSheet)