我现在又出现了一个问题啦!
我的代码是这样。在我电脑上运行没有问题,到别的电脑上时,就说什么office版本不对啦!不能安装程序啦!
Try
'给excel表格填写值()
Dim myexcel As New Microsoft.Office.Interop.Excel.Application
myexcel.Workbooks.Open("cement.xls")
myexcel.Cells(3, 9).value = TextBox4.Text
myexcel.Visible = True
Catch ex As Exception
MsgBox(ex.Message)
Finally
Dim pList() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("excel")
For Each proc As System.Diagnostics.Process In pList
'Try
' proc.Kill()
'Catch ex As Exception
' MsgBox(ex.Message)
'End Try
Next
End Try