I have a excel application COM object for an active workbook.
excelApplication=GetActiveCOMObject["Excel.Application"]
<<NETObject[Microsoft.Office.Interop.Excel.ApplicationClass]>>
But I click on the Wolfram window to run a code so the Excel application is no longer active. But I want to make the Excel window active again from a Wolfram code using NETLink
.
Is there a method within a COM object that can activate its window and bring it to the front? The following fails:
excelApplication@Activate[]
There seem to be methods, but I don't know how to access them from NETLink
.
https://learn.microsoft.com/en-us/office/vba/api/excel.window.activate
NETLink
calls directly from the front end? $\endgroup$