Hi,
I have tried this code from a button click but I am getting an error
Dim wb As Excel.Workbook
Dim thisapplication As Excel.Workbooks
thisapplication.Open("F:\called.xls")
the error is : Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
What is missing ? What should I be referencing ?
any help would be good,
thanks,
Pabby
I have tried this code from a button click but I am getting an error
Dim wb As Excel.Workbook
Dim thisapplication As Excel.Workbooks
thisapplication.Open("F:\called.xls")
the error is : Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
What is missing ? What should I be referencing ?
any help would be good,
thanks,
Pabby