View Full Version : Switching between Excel instances
MaximS
03-27-2009, 04:35 PM
Hi there,
Does anyone knows how to navigate between 2 or more Excel instances with some workbooks open?
Kenneth Hobs
03-27-2009, 07:24 PM
Does GetObject() help?
Using c#, this method might help. http://support.microsoft.com/kb/316126
Another article using .Net's vb or c#: http://support.microsoft.com/kb/238610
MaximS
03-27-2009, 08:41 PM
Thanks Kenneth I will have go with yours proposals.
I have already found solution which works for me:
Dim OtherExcel As Application
Dim BookToFind As Workbook
Set BookToFind = GetObject("c:\docs\file.xls")
'if you need to access the Application object of the other Excel instance:
Set OtherExcel = BookToFind.Parent
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.