will produce a file called output.txt. I presume as this is the VBA forum, you will be executing this from within a Shell statement so that this can be read by your program.
My code was tested in Excel VBA. Did you copy/ paste it from the web page; if not check for it for typos.eg. You are using Close(f) and FreeFile() ; I did not include the brackets in my code.
You must understand I just a newbie... Sorry and thank you
t = Timer 'Timer not a type
may I declare it as new timer?
-------------------------------------------------------
doEvents() 'I don't know if exists any command to wait for a file to be created meanwhile I use
What if any MS Office Application are you using to write your VBA code?
If your line System.Threading.Thread.Sleep(5000) is working it leads me to think you may be using VB.NET. If you are using VB.NET you should be in forum796.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.