Hi,
I am trying to close a workbook using the close method of workbook object. Here is the code I am trying:
[VBA] Sub close()
Dim wb As Workbooks
Set wb = Application.Workbooks
'Trying to set savechanges to true
wb("book1.xls").Close (True)
End Sub[/VBA]
I get an error saying " Run time error 9 : Subscript out of range"
Please help me resolve this. I am new to excel VBA programming.Thanks!