
Writing Data to Excel from VB6
Hi I have some text code below which runs on clicking a
button on a form in VB6.
However, the user is prompted to save the file on the
interface.
I want to save the file and have no save message
displayed. How do I do this?
#############################
Dim xlsApp As excel.Application
Set xlsApp = excel.Application
With xlsApp
'.Visible = True
.Workbooks.Open ("C:\Test.xls")
.Range("A1").Value = "Cell1"
.Range("B1").Value = "Cell2"
End With
xlsApp.Workbooks.Close
xlsApp.Quit
######################