R
ragtopcaddy via AccessMonster.com
Every week I get a spreadsheet deposited in a directory. It has a "Name" +
"mmddyy.xls" format. I have a function that returns the name of the latest
file in the directory. I have queries in my db on a table, "xlData" that is
linked to the latest spreadsheet. I would like to further automate the
process that returns the latest filename so that I can create a link to the
spreadsheet, whose name changes weekly but predictably, so that all queries
based on "xlData" will return data from the latest spreadsheet.
How do I use VBA to link to the sheet? I don't want to transferspreadsheet or
create a dao.recordset object. I just want to link to the spreadsheet so I
can query it and append and update records.
Thanks,
Bill R.
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via AccessMonster.com
"mmddyy.xls" format. I have a function that returns the name of the latest
file in the directory. I have queries in my db on a table, "xlData" that is
linked to the latest spreadsheet. I would like to further automate the
process that returns the latest filename so that I can create a link to the
spreadsheet, whose name changes weekly but predictably, so that all queries
based on "xlData" will return data from the latest spreadsheet.
How do I use VBA to link to the sheet? I don't want to transferspreadsheet or
create a dao.recordset object. I just want to link to the spreadsheet so I
can query it and append and update records.
Thanks,
Bill R.
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via AccessMonster.com