asked on
Dim excel As Microsoft.Office.Interop.Excel.Application
Dim wb As Microsoft.Office.Interop.Excel.Workbook
Dim ws As Microsoft.Office.Interop.Excel.Worksheet
Dim rng As Microsoft.Office.Interop.Excel.Range
excel = New Microsoft.Office.Interop.Excel.Application
wb = excel.Workbooks.Open(FileToLoad)
'Delete any sheets named as SHEET_TO_DELETE
wb.Sheets.Delete("SHEET_TO_DELETE")
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
ASKER
wb.sheets.delete(ws)
with the following error:
Too many arguments to 'Public Sub Delete()'