试试
With DataTables("窗口1_Table1")
改成
With Tables("窗口1_Table1").DataTable
如果还是报错,就是你窗口名或者table名写错,或者是你窗口1没有打开