Hi guys,
I was wondering if it is possible for excel to check when another spreadsheet was last modified.
I'm building a macro that gathers information from several different workbooks and condenses it to one report. One of the workbooks has two macro's in there (clearinfo and gatherinfo).
What I would like in an ideal world is the macro to do the following:
If it's not possible to check the modified date, then just having the dialog box saying "Do you want to update data?" will do.
Hope I made that clear.
I was wondering if it is possible for excel to check when another spreadsheet was last modified.
I'm building a macro that gathers information from several different workbooks and condenses it to one report. One of the workbooks has two macro's in there (clearinfo and gatherinfo).
What I would like in an ideal world is the macro to do the following:
- Open file from network drive
- check when file was last modified
- create a dialog box saying "filename was last modified ## days ago, do you want to update data?" with a yes or no option.
- If the user hits yes then it should run clearinfo then run gatherinfo in that workbook. Then save the results.
- If the user hits no then it should end the sub.
If it's not possible to check the modified date, then just having the dialog box saying "Do you want to update data?" will do.
Hope I made that clear.