I have this script to close a window based on it's name (no, I didn't write it. I'm not that familiar with VB):
Is there some way I can use a wildcard to select any window with a specific word in the title; like "*window"?
Any help would be appreciated!
Code:
Set objWord = CreateObject("Word.Application")
Set colTasks = objWord.Tasks
If colTasks.Exists("this window") Then
colTasks("this window").Close
End If
objWord.Quit
Any help would be appreciated!