请问下面这段代码错在哪里啊?
请问下面这段代码错在哪里啊?
Private Sub Command3_Click()
Dim xObject As Object
Set xObject = CreateObject("Excel.Sheet")
Set xObject = xObject.application.activeworkboo.activesheet
xObject.range("A1").Value = "thank you"
xObject.range("A2").Value = "Hello,world"
xObject.application.Visible = False
'xObject.Cells(1, 1).Value = "This is column A, row 1"
xObject.SaveAs "d:\forum\xobject.xls"
xObject.application.quit
Set xObject = Nothing
End Sub