Using FileOpen

T

Tippy

I am trying to
1. Get the file path from an excel sheet.
2. Open the text file for input.

Dim strFILENAME As String
strFILENAME = Sheet1.Range("E1").Value
FileOpen(1, "strFILENAME", OpenMode.Input)
...
blah = LineInput(1)


When compiling, I seem to have a syntax error on FileOpen an
LineInput. Any ideas of why this might be a problem?

Also what is the difference between using FileOpen and
Open strFILENAME For Input As #1 ? and FileClose and Close #1? If
do the latter choices for both questions, am I able to use LineInput?

Thanks :
 

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

Similar Threads

Using FileOpen 1
saveas macro help 1
Error number: 3326 1
filedialog of user cancels 5
Notes export macro bug 2
Using a Dialog To Change Directory 2
Parsing a network path 2
Read the next line in a text file 9

Top