Sub closeWorkbook()
Dim wb As Workbook
Dim fPath As String
fPath = "C:\....\myfile.xlsx"
Set wb = workbooks.Open(Filename:=fPath)
' For Example:
' To close this workbook with
' saving the changes
wb.Close SaveChanges:=True
' To close this workbook without
' saving the changes
wb.Close SaveChanges:=False
End Sub
VBA Outlook KPI Excel Alt+F11 Dashboards Macros Recording Graphs Automation Developer WaterFall Powerpoint Charts Pivot Tables Forecast Charts