Is there a way to check and see if a particular file is open in another session of Excel. I know how to open the file but lack the knowledge to check first if it is open.
Is there a way to check and see if a particular file is open in another session of Excel. I know how to open the file but lack the knowledge to check first if it is open.
Last edited by SDruley; 06-20-2011 at 01:57 AM.
Turn Data into Information
Turn Information into Knowledge
Turn Knowledge into Direction
Turn Direction into Leadership
Turn Leadership into Results
Stephen Druley
It's not how quickly you think
But how deeply you think
The quality of thinking is measured
by remoteness to conformance
Stephen Druley
Hi SDruley, perhaps this example will help you out:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=468
Hope it helps!
That suggestion could be reduced to:
Please Login or Register to view this content.
It is amazing how Excel vba programming can be a measure of how deeply one can think through a solution. I am totally blown away by snb's response here. Sensational programming.
snb, since you already specified the variable c01 and set it to the file path/name, could you not use it in the IIf statement, e.g.
instead ofPlease Login or Register to view this content.
?Please Login or Register to view this content.
@Paul,
Yes, of course. You are quite right. Thanks !
You triggered me not to use a redundant variable at all, resulting in :
Please scrutinize this as thoroughly as you did my previous suggestion.
Please scrutinize this code as thoroughly as you did my previous suggestion.Please Login or Register to view this content.
Last edited by snb; 06-20-2011 at 02:54 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks