Help for this page
# If Word is closed instead of the file, calling "Count" # causes an error message but lowering the Warn level ... } sleep 5; }
if (($mycnt = $word->Documents->Count()) < $mydocnt) {