still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 753
- Office Version
- 365
- Platform
- Windows
Hi
Excel 2010
I'm trying to close any inactive workbooks using a macro.
I can't get this to work. The name of the workbook that I want to keep open is
Mike
Excel 2010
I'm trying to close any inactive workbooks using a macro.
I can't get this to work. The name of the workbook that I want to keep open is
HTML:
"C:\Excel\New Menu v2.xlsm"
HTML:
Sub CloseAllSheetsExActive()
Dim WBs As Workbook
For Each WBs In Application.Workbooks
If Not WBs.Name = New Menu V2.xlsm
Then WBs.Close =True
Next WBs
End Sub
Mike