I am trying to save a spreadsheet from vb using the method:
objspreadsheet.Workbooks.Add
ChDir saveLocation
filename = saveLocation + filename
objspreadsheet.ActiveWorkbook.SaveAs (filename)
I get an error saying that Microsoft Excel cannot access the file (presumably because it has just been created and the file does not currently exist).
How do I save a newly created spreadsheet from visual basic?
Thanks
Louise
objspreadsheet.Workbooks.Add
ChDir saveLocation
filename = saveLocation + filename
objspreadsheet.ActiveWorkbook.SaveAs (filename)
I get an error saying that Microsoft Excel cannot access the file (presumably because it has just been created and the file does not currently exist).
How do I save a newly created spreadsheet from visual basic?
Thanks
Louise