S
Steve P
Hello all of you VBA oracles out there...
I am creating a script that appends excel files to an exisiting table. I
have the basic import code working fine, I just need to fine tune it to track
which input file any particular record was added with.
I am attempting to create a code module that checks the contents of a
specific folder, locates the most recently created file in the folder based
on file name (which will have date/time stamped file names ie.
072407_0830_blahblah.xls), and saves the date/time stamp in a variable. The
value in the variable at the end of the code would have a value of
"072407_0830" in this case. I'm thinking that this would best be
accomplished by using an array...what do you all think?
This variable will be used later on in the script in a field I have yet to
create to stamp which file the record was imported from. I will also have
the script do a check of the "importstamp" field to see if all of the most
recent files have been imported...in other words, I'd like the script to only
append Excel files that have not previously been appended.
I am creating a script that appends excel files to an exisiting table. I
have the basic import code working fine, I just need to fine tune it to track
which input file any particular record was added with.
I am attempting to create a code module that checks the contents of a
specific folder, locates the most recently created file in the folder based
on file name (which will have date/time stamped file names ie.
072407_0830_blahblah.xls), and saves the date/time stamp in a variable. The
value in the variable at the end of the code would have a value of
"072407_0830" in this case. I'm thinking that this would best be
accomplished by using an array...what do you all think?
This variable will be used later on in the script in a field I have yet to
create to stamp which file the record was imported from. I will also have
the script do a check of the "importstamp" field to see if all of the most
recent files have been imported...in other words, I'd like the script to only
append Excel files that have not previously been appended.