lisaharris
Programmer
I have a macro that runs a detailed daily process -- it runs several queries to create three final output tables. Two of the tables may be empty.
Once the tables are created, they are exported in Excel format. I have a condition set for those two export lines so the empty tables won't export.
The problem is that if there is a file from the previous day, it will remain in the directory. I want the Macro to first delete the two excel files that may be in the output directory from the previous day.
VBA would be an acceptable alternative, I just need help with the code. Thanks for any ideas!
__________
Veni, Vidi, Visa: I came, I saw, I charged it.
Once the tables are created, they are exported in Excel format. I have a condition set for those two export lines so the empty tables won't export.
The problem is that if there is a file from the previous day, it will remain in the directory. I want the Macro to first delete the two excel files that may be in the output directory from the previous day.
VBA would be an acceptable alternative, I just need help with the code. Thanks for any ideas!
__________
Veni, Vidi, Visa: I came, I saw, I charged it.