Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Saving ComboBoxes and TextBoxes to an Excel book

$
0
0
Hi,
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...

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>