File length limit in VB?

P

Peter Bako

I'm using a script that I got here to convert Word template files into Word
documents. On my Word 2004 system, I can drop any file onto it and have the
convertion go through, but some of my users are having issues with their V.x
version. After getting a test case, the problem appears to be a file length
issue, one that I cannot duplicate using 2004.

Is there a max path file limit that is smaller in Word V.x's VB as compared
to 2004's?

Thanks,
Peter
 
D

Daiya Mitchell

Maybe? I'm not sure it's VBA, though. I know Word X did not support
filenames longer than 31 characters--you could give it a longer name in the
Finder, and it wouldn't delete a long name, but it wouldn't show up in the
window titlebar. I don't really see how this would derail your script, but
I don't know much about it.
 
P

Peter Bako

Its weird, when using Word V.x with a longer filename, the same VB script
that works flawlessly with Word 2004 (with the same file mind you) gives me
a Run Time Error 5152. The filename is about 30 characters long (sorry
don't have it here at the moment) and with the full path it will be way
longer than that. However if I rename the file to something insanely short,
like a letter or two, and then run it with the same script, same path on V.x
it is fine.

Ok, I guess I can put in a bit of code that if the file name is past a
certian length to grab the original name, rename it, execute the VB script
on it, and then rename it back...

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top