This program is for a church food pantry, and I am doing it for free. My experience with C# is none, but I took the project because it sounds fun as I love to program. Anyway, my problem is I need to save the workbook before I close it, and I can't seem to figure out a way to do that.
The code and a few tries are listed here; the error I received is listed next to the try.
private void btnExcelClose_Click(object sender, EventArgs e)
{
exApp = new Microsoft.Office.Interop.Excel.Application();
// this.Save(); CS1961 Form1 does not contain a defintion for 'Save' and no accesible extension method
// thisworkbook.save(); CS0103 The name 'Thisworkbook' does not exist in the current contex
// Excel.Workbook.save(); CS0117 Workbook does not contain a definition for 'save'
// exApp.Workbooks.Save(); CS1061 'Workbooks' does not contain a defintion for 'Save' and no accesible extension method
exApp.Workbooks.Close();
}