Finding Multiple Instances of Word
A system I've taken over (Access 2007 front end, converting back end from Jet to SQL Server) has various processes calling Word - some processes run visibly, others run hidden. Usually :dunno they close OK!....
But sometimes a user will inadvertently try to save a specific document having created it twice - with the first copy still open under a separate instance of Word.
Therefore I need to be able to loop through all instances of Word (hidden and visible) to check each instance for the existence of a document BEFORE trying to save the "current" one. Then I can close the previous version and proceed.
But there doesn't seem to be a container for "Applications" - any idea how I can find any instance other than the one that's been open longest? (Yes, I'd love to do everything in ONE instance of Word - but with some 'needing' to be visible and others 'needing' to be hidden, there's no chance of that - the client, as ever, always being right!)