我看了你的代码,问题出在
Call SetParent(hWndWordApp, Me.hwnd)
如果不加载这句就没有问题
其实你可以加上下面的代码解决
Private Sub Form_Unload(Cancel As Integer)
Dim a As Excel.Window
For Each a In xlapp.Windows
a.Close
Next
Set xlsheet = Nothing
Set xlbook = Nothing
Set xlapp = Nothing
End Sub