Switch between multiple open Word douments with random names

Hello Forum,

I have a Windows application that opens 2-5 Word documents with a random name. I have to check for some text and depending on the text I have to close it or append some text and then save and close it.

I can find the text (Get full text) but I can’t figure out how to do the loop (I don’t know the amount of documents it is opening). Because the name of the file is random the Selector is the same for all the documents or am I wrong?

I have tryed with Process.GetProcesses but it is only one process that is running (WINWORD), is there a way to catch the subprocesses runing below the process?


hi @Claus
you can use get full text to extract the word name document, then use an click text activity depending the name you want.