Q
quicklearner
I have created a button in Access2000 that opens an Excel Spreadsheet. What
I need now is assit in closing excel upon completion. I can get an excel
macro to save my file and close the worksheet, but it is not closing excel
entirely. I'm on project with this employer and could use a response today
to fix this before I leave. Thanks much to any and all. My macro is as
follows:
Sub SaveClose()
'
' SaveClose Macro
' Macro recorded 9/27/2004 by cdjohnso
'
' Keyboard Shortcut: Ctrl+Shift+C
'
ChDir "I:\SchoolsSurvey\Graphs_Reports"
ActiveWorkbook.SaveAs Filename:= _
"I:\SchoolsSurvey\Graphs_Reports\Responses_incl_Phase_2.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close
ActiveWindow.Close
Set excelApp = GetObject(, "Excel.application")
excelApp.Quit
End Sub
I need now is assit in closing excel upon completion. I can get an excel
macro to save my file and close the worksheet, but it is not closing excel
entirely. I'm on project with this employer and could use a response today
to fix this before I leave. Thanks much to any and all. My macro is as
follows:
Sub SaveClose()
'
' SaveClose Macro
' Macro recorded 9/27/2004 by cdjohnso
'
' Keyboard Shortcut: Ctrl+Shift+C
'
ChDir "I:\SchoolsSurvey\Graphs_Reports"
ActiveWorkbook.SaveAs Filename:= _
"I:\SchoolsSurvey\Graphs_Reports\Responses_incl_Phase_2.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWorkbook.Close
ActiveWindow.Close
Set excelApp = GetObject(, "Excel.application")
excelApp.Quit
End Sub