Hi everyone!
I am facing the following problem:
I want to import an excel that is created by another do-file.
However, in days when I don't receive new data, this excel is not created.
Therefore, if I simply try to run:
import excel "this excel - ${today}.xlsx" , ///
firstrow clear
I will receive an error all the days that I haven't received data (which means there would be no excel for ${today}.
Is there any way I can conditional the import of the excel on the existence of the file?
For example, with an "IF"?
Thanks in advance!!
Isabela
I am facing the following problem:
I want to import an excel that is created by another do-file.
However, in days when I don't receive new data, this excel is not created.
Therefore, if I simply try to run:
import excel "this excel - ${today}.xlsx" , ///
firstrow clear
I will receive an error all the days that I haven't received data (which means there would be no excel for ${today}.
Is there any way I can conditional the import of the excel on the existence of the file?
For example, with an "IF"?
Thanks in advance!!
Isabela
Comment