The time now is 01/10/09 - 00:40
Log in: Username: Password:
Search forums for:
  
 
H-Desk.com Forum Index

H-Desk.com - PC Security matters - Protect your PC privacy


Runtime error 1220 in MS Word 2000


H-Desk.com Forum Index -> Microsoft Software -> Microsoft Office

Post new topic   Reply to topic
Author Message
torrey



Joined: 13 Aug 2007
Posts: 4



PostPosted: 07/13/08 - 06:35    Post subject: Reply with quote

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?
Back to top

nicholas



Joined: 07 Dec 2004
Posts: 7



PostPosted: 08/11/08 - 22:28    Post subject: Reply with quote

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.
Back to top

Display posts from previous:   
Post new topic   Reply to topic All times are GMT

H-Desk.com Forum Index -> Microsoft Software -> Microsoft Office

Page 1 of 1

Related topics: