Public apExcel As Microsoft.Office.Interop.Excel.Application = DirectCast(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application) Public Sub LoadSpreadsheet(ByRef cSheetType As String) apExcel.Workbooks.Open(strSheetName) End Sub
apExcel
Nothing
NullReferenceException
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)