Hello,
I have faced strange problem with the following code:
DefCatalogue = ThisWorkbook.Path
ChDir (DefCatalogue)
nFileNum = FreeFile
Open "Message.txt" For Input Access Read As #nFileNum
It was working fine when both workbook and Message.txt were located on local drive. But when I have moved both files to network resource i.e. "\\PC_3\shareddocs\Shared files\Tmp" the code breaks on file open statement and it happens because ChDir does not make any changed to default directory.
Does anyone have any ideas why it does not work?
Bookmarks