I have a macro that performs some comparisons between today's data (on Sheet 2
in a file) which I pull off the web at the end of the day, and yesterday's data
(on Sheet 1 in the same file). It determines and earmarks what's new today that
was not there yesterday and then puts that on Sheet 3 in the same file.
Then it creates a new file. It copies today's data (Sheet 2) into the new file,
and puts it on Sheet 1, so that tomorrow it will be seen as yesterday's data,
and I can repeat the process.
My problem:
When I create the new file, the macro doesn't carry over, and I have to manually
copy and insert it. Is there any way I can have the macro itself be part of the
new file in an automated way?