If each workbook contains an 'auto' macro this will suffice (since an 'auto' macro runs automatically when opening the file...)
PS. Avoid 'Select' and 'Activate' in VBA.Code:Sub M_snb() with getobject("C:\My Documents\BR1 parts sales.xlsm") .close true end with with Getobject("C:\My Documents\Br1 service sales.xlsm") .close true end with End Sub




Reply With Quote
Bookmarks