Hello,
I've been trying to create a macro that takes data from an excel sheet and pastes them into an accounting application cell by cell.
In the macro I use AppActivate <windowname> and direct the copy paste commands to the window defined in windowname.
Now, every time I need to send data to a different window, I need to go to the macro and edit the windowname. Is there some way in excel that I can get a list of all open windows ... no, not workbooks ... I want list of all applications that are open and not hidden. I can then get that list into a drop down list and select it before the macro goes ahead with the rest of the steps.
So, if someone can help me to:
a) Get a macro to list window names of all running applications in a drop down list and
b) a function to list window names of all running applications so that I can just pick a window name from a cell using data validation,
I would be so happy and grateful :)
Please help as I've been trying to google this for a while now and get all kinds of irrelevant results :(
Oh! I need this for any version of excel 2007 and up.
Thanks for any help,
Cheers :)