Run time error 75

L

Lisa

Hi,

I have Word 2007 on Vista. I have a macro which is running fine on Word
2003/2000. I imported it to Word 2007, it doesn't work. I got Visual Basic
error message: "Run time error '75', path/file access error". I clicked
debug button, it shows the following line has problem.

Open filename For Output As #1 ' Open file for output.

Not familiar with Visual Basic code. Need help!!!

Any help will be highly appreciated!

Thanks in advance!

Lisa
 
S

Steve Rindsberg

Hi,

I have Word 2007 on Vista. I have a macro which is running fine on Word
2003/2000. I imported it to Word 2007, it doesn't work. I got Visual Basic
error message: "Run time error '75', path/file access error". I clicked
debug button, it shows the following line has problem.

Open filename For Output As #1 ' Open file for output.

Not familiar with Visual Basic code. Need help!!!

This line of code is trying to open the file named in the variable "filename"
in order to write something to the file.

Either the path to the file doesn't exist or you don't have permissions to
write to the file.

If you hover your cursor over the word "filename" in that line, you'll see
the name of the file it's trying to write to.
 

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