G
Guest
Here is my issue...
I have a file that gets kicked off our mainframe nightly. The file is
requested as an Excel file. Although when kicked off, the file appears to be
in Excel format and ends with a .xls extension, the file is really a teb
delimmetted file. Therefore, every morning I come in and save it as a "true"
..xls file and then import to my database via a form.
I think I can create a macro in Excel that will resave the file as an .xls
file automatically each night.
Here would be the ideal process:
- 3:10 a.m. every night, file is sent from mainframe to F:/ drive.
- macro runs that changes the file type to .xls
- Access DB imports file and then I can set the rest of the code to run in
the "import" event for this file.
Where I think it gets tricky, is there will be two modifications of the file
every night, and I only want to import after the second modification. I
suppose I could create the Excel Macro to automatically change the file to a
..tab extension. I guess then t 3:10 an filename.xls will have a new modified
date and then after the macro the filename.tab will have a new modified date
and on the change in modified date for filename.tab would trigger the import.
Is this sound reasoning?
I have a file that gets kicked off our mainframe nightly. The file is
requested as an Excel file. Although when kicked off, the file appears to be
in Excel format and ends with a .xls extension, the file is really a teb
delimmetted file. Therefore, every morning I come in and save it as a "true"
..xls file and then import to my database via a form.
I think I can create a macro in Excel that will resave the file as an .xls
file automatically each night.
Here would be the ideal process:
- 3:10 a.m. every night, file is sent from mainframe to F:/ drive.
- macro runs that changes the file type to .xls
- Access DB imports file and then I can set the rest of the code to run in
the "import" event for this file.
Where I think it gets tricky, is there will be two modifications of the file
every night, and I only want to import after the second modification. I
suppose I could create the Excel Macro to automatically change the file to a
..tab extension. I guess then t 3:10 an filename.xls will have a new modified
date and then after the macro the filename.tab will have a new modified date
and on the change in modified date for filename.tab would trigger the import.
Is this sound reasoning?