Bad File name or number

  • Thread starter Thread starter thorn2fish
  • Start date Start date
T

thorn2fish

I had a small subroutine where I read one text file and wrote to another. It
worked fine, but then I wanted to break the write (Print statement) out
various subroutines. Now I am receiving error:
Run-Time error '52':
Bad File name or number

Any thoughts on how to acomplish this? I want to open the input and output
files in the main sub, and then read/write in various sub-routines.
 
You would think I would know better. I sat here trying to execute just the
subroutine instead of the main sub. It is working correctly.

Thanks for the qucik response though!
 
Back
Top