Here is situation i faced. 3 workbooks has already been opened, each name of it is book1.xlsx, book2.xlsx, book3.xlsx
I tried to choose object of "book3.xlsx".
Dim ExcelApp
Dim objWorkBook, objSheets
Dim args, param
Dim result
Set ExcelApp = GetObject(,"Excel.Application")
Set objWorkBook = ExcelApp.ActiveWorkbook
Wscript.Echo(objWorkBook.name)
the expected result was book3.xlsx but it shows book1.xlsx. choosing specific Excel workbook is possible among multiple opened workbooks?