
Obj Ref not set to an instance of an Obj
I have a problem saving an excel workbook using win 2k
and office 2k through VB.Net. The following code works
fine using win xp and office xp.
xlWkBk = xlApp.Workbooks.Add
xlWkBk.SaveAs()
The following gives the same error
xlWkBk = xlApp.Workbooks.Add
xlWkBk.SaveAs(strPath) 'strPath is a valid Path and file
'name.
I get an error that says Object refrence is not set to an
instance of an Object. Does anyone know what is causing
this? I can add/remove sheets to/from xlWkBk and modify
them with no problem.