M
Matthew McManus
Hi,
I have the following simple instruction in one of my macros.
Workbooks("fileA.xls).Activate
ActiveWorkbooks.Close
fileA.xls has been opened by an earlier macro.
Sometimes, however, the earlier macro did not need to run and s
fileA.xls will not be open and I'll get an error message.
Is there any code I can write so that the macro will close fileA.xls i
it is open, but do nothing otherwise?
Thanks
Matthe
I have the following simple instruction in one of my macros.
Workbooks("fileA.xls).Activate
ActiveWorkbooks.Close
fileA.xls has been opened by an earlier macro.
Sometimes, however, the earlier macro did not need to run and s
fileA.xls will not be open and I'll get an error message.
Is there any code I can write so that the macro will close fileA.xls i
it is open, but do nothing otherwise?
Thanks
Matthe