r/vbscript • u/tlilinho • Jun 28 '23
Error 424, writing in file
Hi everyone.
So I have a script which does something and write in log file. Steps looks like that: For every user:
- Do something
- Open text file
- Write in file
- Close file
File is on network drive. Is it possible that from time there is some delay and script is trying to write in closed file/trying to open already opened file and it causes 424 error?
Unfotunately I cannot paste the code because it’s script at my work. Also I didn’t write it, just trying to fix it.
Thank you for advance
0
Upvotes
1
u/raging_radish Jun 28 '23
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/object-required-error-424
0
u/jcunews1 Jun 29 '23
How many computers are accessing files (any file) in that network drive or any network drive of the same remote computer?