Hi,
Can someone please help me on how to save textboxes and comboboxes to an excel workboook?
The current Code that I have is:
But this code does not work...
Can someone please help me on how to save textboxes and comboboxes to an excel workboook?
The current Code that I have is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = objWorksheet.Cells(1, 1).text
TextBox2.Text = objWorksheet.Cells(2, 1).text
TextBox3.Text = objWorksheet.Cells(3, 1).text
objExcel.Workbooks.Close()
objExcel.Application.Quit()
End Sub
But this code does not work...