I have the following macro to close workbook containing Tb or Trial Balance
However, I won't close the workbook Trial Balance
It would be appreciated if someone could please assist in amending the code
However, I won't close the workbook Trial Balance
It would be appreciated if someone could please assist in amending the code
Code:
Sub Close_TB_Files()
Dim WBK As Workbook
For Each WBK In Workbooks
If WBK.Name Like "*.TB**.xlsx" Or LCase(WBK.Name) Like "*tb*" Or LCase(WBK.Name) Like "Trial*.*" Then WBK.Close SaveChanges:=True
Next WBK
End Sub