![]() |
workbook error - please help
why does
workbooks("book1.xls").close (book1 is open in the current instance of excel, code is in book2) generates a subscript out of range error - why? i have tried specifying savechanges = .... but this is an optional argument i believe |
workbook error - please help
Sub closeit()
Workbooks("Book1").Saved = True Workbooks("Book1").Close End Sub -- Gary''s Student - gsnu2007q "PBcorn" wrote: why does workbooks("book1.xls").close (book1 is open in the current instance of excel, code is in book2) generates a subscript out of range error - why? i have tried specifying savechanges = .... but this is an optional argument i believe |
All times are GMT +1. The time now is 09:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com