I am using a batch file to open a document in word and run a macro against it using the /m switch. Normally this works fine. However, if the file name doesn't exist, word just hangs and expects a key press to clear a message box. This code needs to be run in batch mode without user intervention. Is there any switch or way around this to force word to fail and quit itself?
Thanks
Trevor
Thanks
Trevor