mikemcbain
Board Regular
- Joined
- Nov 14, 2005
- Messages
- 152
- Office Version
- 365
- Platform
- Windows
I have an extensive macro that builds a database from a number of daily files but it requires me to type a negative number into cell C23 and then I must click a button to run my macro.
These negative numbers represent each past day eg. -2 produces the info for the day before yesterday and -365 produces the info for this day last year etc .
I want the macro to run unattended overnight but for the life of me I cannot work out how to tell it to change C23 from say -33 to -34 and then re-run the macro?
Sounds so simple but my old brain cannot do it so perhaps some young whiz can help me?
Mike.
These negative numbers represent each past day eg. -2 produces the info for the day before yesterday and -365 produces the info for this day last year etc .
I want the macro to run unattended overnight but for the life of me I cannot work out how to tell it to change C23 from say -33 to -34 and then re-run the macro?
Sounds so simple but my old brain cannot do it so perhaps some young whiz can help me?
Mike.