How can I get the full path of an Excel file with the window handle?

MasterYoda

New member
Joined
May 30, 2007
Messages
1
Programming Experience
3-5
Hello,

I am developing this little application in VB 2005, and got stuck trying to get the full path of an open Excel workbook, even though I got its window handle, and the file name (e.g., myworkbook.xls)?

By the way, the Excel file is opened externally by the user, and not by my application. I want to get the full path of this file, and then make a copy to another folder.

Is this possible? Thanks for the help!
 
Back
Top