mmetzinger
Board Regular
- Joined
- Dec 30, 2010
- Messages
- 61
Can someone explain to me why excel won't let me do this? What I want is for any of my three workbooks that might be open to be closed upon macro error. Testing this doesn't work as excel yells because during testing I don't open one file to make the error happen.
Bunch of code that leads to this statement at the end..
Any thoughts?
Bunch of code that leads to this statement at the end..
Code:
Exit Sub
errhandler:
On Error Resume Next
Application.DisplayAlerts = False
Windows("RMCensus.xlsx").Close
Windows("Iservices.xlsx").Close
Windows(outputwb).Close
MsgBox ("An error occured while running the macro." & vbCrLf & "Please report to BCI IT.")
End Sub
Any thoughts?
Last edited: