Is there a way to get a handle to an open Excel document so I can use the standard ExcelSheet functions?
For example, a macro may open an excel spreadsheet with a button. I then need a handle so I can define ExcelSheet es1=???
I've tried to use ExcelSheet.Init with no luck. The only way I can get this to work so far is to create commands to do a file..save, and then open the file with ExcelSheet.Init
Is there a way to do this without saving the already open Excel file?
I'm trying to get a handle to an already open Excel document by name or by it being the active document (there may be more than one Excel document already open).
But in your case, the reason probably is other.
In which line is error? es1.Init or es1.SetCell?
This error is when no workbook is open in Excel (dark gray background with no sheets).
What is your Quick Macros version? What Office version?
Error occurs on es1.Init
There are currently 2 Excel documents open: "Book1" & "DMS Report"
I'm trying to get the handle to "Book1", and it is visible
QM version 2.3.2.8
Excel 2007
Yes. It is 0.
I even threw in an act("Book1") at the beginning.
Excel is open, and the clipboard window is not active. See attached screenshot.
Any other ideas?