S
Sam
greetings fabulous information resource,
Can anyone explain why this statement;
"If Workbooks.Count = 2 Then Application.Quit"
works properly, ie. closes both the open wbook and Excel, when there's
actually only one workbook open?
The real mystery is why all bar two of about 40 people using this wbook
require their count value to be set to 1 for it to work correctly. The
object of the line being to leave any other open wbook alone when
closing this one. For reasons that I've nfi about there's two of us out
of the forty who, with *only* this wbook open, are told by a msgbox
using the Workbooks.Count that there's really two wbooks open and
consequently we require the Count value to be set to 2.
It's beyond me. Can anyone help with this?
cheers
alvey
Can anyone explain why this statement;
"If Workbooks.Count = 2 Then Application.Quit"
works properly, ie. closes both the open wbook and Excel, when there's
actually only one workbook open?
The real mystery is why all bar two of about 40 people using this wbook
require their count value to be set to 1 for it to work correctly. The
object of the line being to leave any other open wbook alone when
closing this one. For reasons that I've nfi about there's two of us out
of the forty who, with *only* this wbook open, are told by a msgbox
using the Workbooks.Count that there's really two wbooks open and
consequently we require the Count value to be set to 2.
It's beyond me. Can anyone help with this?
cheers
alvey