Set objWkb = openFile(mypath) 'copy ヤェ
Set objTemplates = openFile(mypathTemp) 'copyマネ
'sName为一变量string
objWkb.Sheets(sName).Cells.Copy Destination:=objTemplates.Sheets(sName).Cells
为什么运行提示对象定义错误?
objTemplates.Sheets("JD").Columns("E:E").Select
Selection.Copy
objTemplates.Sheets(aaa(i)).Columns("B:B").Select
ActiveSheet.Paste
也提示40036错误。