Here is what I have (Simplified)
Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet
xlApp = CType(CreateObject("Excel.Application"), Excel.Application)
xlBook = CType(xlApp.Workbooks.Add, Excel.Workbook)
xlSheet = CType(xlBook.Worksheets(1), Excel.Worksheet)
xlSheet.Cells(1, 1) = 25
xlSheet.Cells(1, 2) = 27
xlSheet.Cells(1, 3) = 29
xlSheet.Application.Visible = True
xlSheet.SaveAs("C:\Test.xls")
End Sub
==========================
Everything works great.. saves properly. writes to the cells everything. I am trying to find more help on this and obviously vb.net help and MSDN leaves a lot to be determined.
I am trying to find out how to output to a Spreadsheet i already have.
Also how to print the excel spreadsheet.
Where can I look in the future for help on something like this besides this great forum.
Thanks guys!
Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet
xlApp = CType(CreateObject("Excel.Application"), Excel.Application)
xlBook = CType(xlApp.Workbooks.Add, Excel.Workbook)
xlSheet = CType(xlBook.Worksheets(1), Excel.Worksheet)
xlSheet.Cells(1, 1) = 25
xlSheet.Cells(1, 2) = 27
xlSheet.Cells(1, 3) = 29
xlSheet.Application.Visible = True
xlSheet.SaveAs("C:\Test.xls")
End Sub
==========================
Everything works great.. saves properly. writes to the cells everything. I am trying to find more help on this and obviously vb.net help and MSDN leaves a lot to be determined.
I am trying to find out how to output to a Spreadsheet i already have.
Also how to print the excel spreadsheet.
Where can I look in the future for help on something like this besides this great forum.
Thanks guys!