Martin_H
Board Regular
- Joined
- Aug 26, 2020
- Messages
- 190
- Office Version
- 365
- Platform
- Windows
Hi,
would it be possible to simplify this code to fewer lines?
The less, the better.
Thank you.
would it be possible to simplify this code to fewer lines?
The less, the better.
Thank you.
VBA Code:
On Error Resume Next
Workbooks("01_jan.xlsm").Close savechanges:=True
Workbooks("02_feb.xlsxm").Close savechanges:=True
Workbooks("03_mar.xlsm").Close savechanges:=True
Workbooks("04_apr.xlsm").Close savechanges:=True
Workbooks("05_may.xlsm").Close savechanges:=True
Workbooks("06_jun.xlsm").Close savechanges:=True
Workbooks("07_jul.xlsm").Close savechanges:=True
Workbooks("08_aug.xlsm").Close savechanges:=True
Workbooks("09_sep.xlsm").Close savechanges:=True
Workbooks("10_okt.xlsm").Close savechanges:=True
Workbooks("11_nov.xlsm").Close savechanges:=True
Workbooks("12_dec.xlsm").Close savechanges:=True
On Error GoTo 0