Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim xname As String = "adb"
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)
Dim i As Integer = 1
Do While i < 4
xlSheet = CType(xlBook.Worksheets(i), Excel.Worksheet)
xlSheet.Cells(10, 10) = "This is column B row 2"
xlSheet.Cells(5, 5) = "This is column B row 2"
xlSheet.Name = "Newsheet" & i
i = i + 1
Loop
xlSheet.SaveAs("C:\Test.xls")
Dim xname As String = "adb"
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)
Dim i As Integer = 1
Do While i < 5
Try
xlSheet = CType(xlBook.Worksheets(i), Excel.Worksheet)
Catch ex As Exception
[COLOR=red]xlSheet = xlBook.Worksheets.Add[/color]
xlSheet = CType(xlBook.Worksheets(i), Excel.Worksheet)
End Try
xlSheet.Cells(10, 10) = "This is column B row 2"
xlSheet.Cells(5, 5) = "This is column B row 2"
xlSheet.Name = "Newsheet" & i
i = i + 1
Loop
xlSheet.SaveAs("C:\Test.xls")