Hello, I have the following code and continue to receive the run-time error #52: bad file name or number
When I hover over the FName, it shows the correct file that I have input, but I am not sure why it is a bad file name. It only has letters and numbers, with no special characters. What other issues could be wrong with a file name?
Code:
Open FName For Input Access Read As #iF1
While Not EOF(iF1)
Line Input #iF1, WholeLine
If Right(WholeLine, 1) <> Sep Then
WholeLine = WholeLine & Sep
End If
RowNdx = 2 * StarCnt + 1
When I hover over the FName, it shows the correct file that I have input, but I am not sure why it is a bad file name. It only has letters and numbers, with no special characters. What other issues could be wrong with a file name?