Hello. I need some help. Hopefully it's something simple.
I am trying to open a txt file, but I get an error message that says
"Run-time error '52':
Bad file name or number
The file name is correct. I tried two ways to pass the name -- as a variable and from Application.GetOpenFilename("Text Files (*.txt), *.txt")
The line where VBA complains is "Open fileToOpen For Input As #InFile"
Any help is much appreciated.![]()
Please Login or Register to view this content.
Thank you,
Angel
Bookmarks