Hi all,
I currently have 1 excel with 2 tables, 1 is datatable and 1 is instruction table.
The instruction table is used to update the datatable daily.
(I have attached as Old Datatable.xlsm)
But now I need to do something abit complicated.
First of all, instead of 1 excel, I want to split into 2 excel files in the same directory.
First is Datatable.xlsm which holdes the master records
Second is InstructionYYYYMMDD.xlsm which holds daily instructions to be updated. (it will be a different file each day)
Can anyone teach me how to:
1) in the Datatable.xlsm, when I run the macro, it will load InstructionYYYYMMDD.xlsm (where YYYYMMDD equals to today's date), and then run my original codes to update the Datatable accordingly.
2) add a checking, if a file has been loaded already, display a message "file already loaded before" and stop.
For this, I am thinking in the Datatable.xlsm, add a sheet call Loaded. This will save down all the YYYYMMDD that has loaded already and use this as a comparison. Is this feasible?
Thanks!
I currently have 1 excel with 2 tables, 1 is datatable and 1 is instruction table.
The instruction table is used to update the datatable daily.
(I have attached as Old Datatable.xlsm)
But now I need to do something abit complicated.
First of all, instead of 1 excel, I want to split into 2 excel files in the same directory.
First is Datatable.xlsm which holdes the master records
Second is InstructionYYYYMMDD.xlsm which holds daily instructions to be updated. (it will be a different file each day)
Can anyone teach me how to:
1) in the Datatable.xlsm, when I run the macro, it will load InstructionYYYYMMDD.xlsm (where YYYYMMDD equals to today's date), and then run my original codes to update the Datatable accordingly.
2) add a checking, if a file has been loaded already, display a message "file already loaded before" and stop.
For this, I am thinking in the Datatable.xlsm, add a sheet call Loaded. This will save down all the YYYYMMDD that has loaded already and use this as a comparison. Is this feasible?
Thanks!
Attachments
Last edited: