TechTalkz.com Home

Go Back   MS Office Help & Free Technical Support > MS Office Help
Register Forum Rules Getting Started! - Guide Blog Videos Gallery Members List

Reply
 
LinkBack Thread Tools Display Modes
Old 11-05-2009, 01:50 AM   #1
Lisa
Guest
 
Posts: n/a
Default Run time error 75

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

  Reply With Quote
Old 11-05-2009, 03:50 AM   #2
DL
Guest
 
Posts: n/a
Default Re: Run time error 75

In Word 2007 open/view your macro and modify it as required
http://office.microsoft.com/en-us/wo...997691033.aspx

"Lisa" <Lisa@discussions.microsoft.com> wrote in message
news:3644DE49-1A60-415D-BADC-2A1B6E1543A5@microsoft.com...
> 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
>



  Reply With Quote
Old 11-05-2009, 07:50 PM   #3
Steve Rindsberg
Guest
 
Posts: n/a
Default Re: Run time error 75

In article <3644DE49-1A60-415D-BADC-2A1B6E1543A5@microsoft.com>, Lisa wrote:
> 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.



  Reply With Quote
Reply
Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 02:36 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional