I read it and I dont get any error messages. If I do without the loop, It produces a csv sheet with the information I want. If I use the loop it will create a sheet and it will write to the sheet except for what the loop is supposed to write.
Don't use FILE_WRITE only, use FILE_READ|FILE_WRITE.
FileOpen(filename,FILE_CSV|FILE_READ|FILE_WRITE,',');
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to write data to excel and no errors arise when I compile but If I have a loop
I my function is supposed to open the file to write initialized as such
I am trying to use a loop to save me coding time which is
nothing writes to the excel sheet. If I were to take it out the loop and code it line by line then it would write to excel sheet.
thoughts?