run-time error '9': subscript out of range
the data.xls workbook is open
the name is correct
there are no rogue spaces in the workbook name
"Mike H" wrote:
Hi,
That would happen if you didn't have an open workbook called data.xls
Are you sure the name is correct?
Are there any rogue spaces in the workbook name?
Mike
uk" wrote:
i get the message wheh i try to run this
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks("DATA.XLS").Close SaveChanges:=False
End Sub
|