Finalfight40
Active Member
- Joined
- Apr 24, 2018
- Messages
- 273
- Office Version
- 365
- Platform
- Windows
Hi All
I am looking for some help with a bit of VBA.
What i am looking to do is loop through the last few sheets (all but first 2, e.g. if i have 5 sheets it will look at the last 3, 6 sheets look at last 4 etc) and look at the row of the active cell and pull back the min date.
For example if on:
Sheet 3 the min date is 04/05/2018
Sheet 4 the min date is 30/05/2018
Sheet 5 the min date is 13/03/2018
the result in my active cell will be 13/03/2018 and ignore the others.
I will find the active cell by using the find function and the amount of sheets will be variable, also they will be named.
Thank you in advance for any help.
I am looking for some help with a bit of VBA.
What i am looking to do is loop through the last few sheets (all but first 2, e.g. if i have 5 sheets it will look at the last 3, 6 sheets look at last 4 etc) and look at the row of the active cell and pull back the min date.
For example if on:
Sheet 3 the min date is 04/05/2018
Sheet 4 the min date is 30/05/2018
Sheet 5 the min date is 13/03/2018
the result in my active cell will be 13/03/2018 and ignore the others.
I will find the active cell by using the find function and the amount of sheets will be variable, also they will be named.
Thank you in advance for any help.