I am trying to write a macro for MS Word 2000. When I run this macro Word gives me following error: “Run-time error '1220': Word cannot find or run the application”. I am trying to run some application from word and I have double checked its path and it is correct. Can you tell what I am doing wrong here?
Hello. You are using “WordBasic.Shell” command and this command does not support long file names but only 8 character long names (like DOS). So, if you write something like “C:\Program Files\...” you will get this runtime error 1220 in MS Word 2000. Either use “C:\Progra~1\...” for path to application or use VBA function “Shell” which supports long file names.