Welcome to FreeSoftwareServers Confluence Wiki

I had to close an open WB via WindowTitle as it didn't show in "Workbooks" because it was opened via IE and in Protected View.

First, I used this to find all Window Titles, then trimmed it and used a "WildCard" and then testing in a terminal.

 cmd = "TASKKILL /FI ""WINDOWTITLE eq OnHoldWo*"""
 retval = Shell(cmd, vbMaximizedFocus)
  • No labels