Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know this code has worked for me before on other machines, but does anyone see a problem with this code:
'------------------------ Public Sub MyFileReader() Dim f As Integer Dim sFile As String sFile = "C:\data.txt" Open sFile For Input As f Close f End Sub '----------------------- The error message that I get is: "Bad file name or number". And yes, the data.txt file exists on the root C: drive and the file is correctly named. - Rob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error message "File format is not valid" | Excel Discussion (Misc queries) | |||
"Unable to Read File" error message in Excel - solutions? | Excel Discussion (Misc queries) | |||
How do I ignore the "Number stored as text" error message permane. | Excel Discussion (Misc queries) | |||
How to ged rid of the "Execution Error 9" message at the file opening? | Excel Discussion (Misc queries) | |||
"file not found" error message when launching source file | Excel Programming |