I am writing a simple program to use VBA to write to a file.
When I try to run this, I get![]()
Dim FileNum As Integer Dim theFile As String Dim fName fName = "c:\temp\testFile.txt" FileNum = FreeFile() Open theFile For Output As #FileNum Write #FileNum, "Writing.." Close #FileNum
Run time error 75 Path/File Access error
There are no access issues, this is just on my local directory. The file does not exist. Any help would be much appreciated.
Bookmarks