Public Sub FileClose(strReportDate As String)
Dim strPath As String
Dim wbkName As String
Dim wbk As Workbook
wbkName = "Intl_Index_" & strReportDate & ".xls"
strPath = DLookup("Directory", "tblDirectory", "Type = 'strPath' ")
On Error Resume Next
Set wbk = Workbooks("Intl_Index_" & strReportDate & ".xls")
If wbk Is Nothing Then
'Do nothing
Else
wbk.Close
End If
End Sub
|