How to identify the object reference to the existing(already opened) Excel sheet - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to identify the object reference to the existing(already opened) Excel sheet (/Thread-How-to-identify-the-object-reference-to-the-existing-already-opened-Excel-sheet) |
How to identify the object reference to the existing(already opened) Excel sheet - yogeesh - 09-12-2012 How to identify the object reference to the existing(already opened) Excel sheet in the Desktop and do"save as" of that file.I need to identify the existing(already opened) excel file in the desktop and do "save as" of that file in the designated folder. Please help me in getting VB Script code for this. I have tried the below code, but its not working. I am using Excel 2010. Code: Dim fso, FolderPath, objExcel, strPathExcel RE: How to identify the object reference to the existing(already opened) Excel sheet - krr - 09-26-2012 You can use below code, Code: Dim fso, FolderPath, objExcel, strPathExcel You can use below code with minimal changes to your code. you can use in both ways. Code: Dim fso, FolderPath, objExcel, strPathExcel Hi, Yogesh you can use below code. Code: Dim fso, FolderPath, objExcel, strPathExcel |