求助vb6打开指定wps电子表格a.xls文件并写入数据的问题
Dim wpsobj As Object, shtobj As ObjectPrivate Sub Command1_Click()
shtobj.Cells(1, 1).Value = Text1.Text
shtobj.Cells(1, 2).Value = Text2.Text
wpsobj.Save (App.Path & "\" & "a.xls")
Workbooks.Close '关闭
End Sub
Private Sub Form_Load()
Set wpsobj = CreateObject("ket.application")
'这一句该怎么写??路径是(App.Path & "\" & "a.xls")
········
。。。。。。。。
wpsobj.Visible = True
End Sub