Hi All,
I have a work book with financial year ending data in all worksheets.
I am looking for VBA code which will loop through all worksheets and does the following :
1) Find the cell containing the term :Jun-17. If Jun17 exists, name the cell to the immediate right as : FY16/17. If the term Jun17 does not exist then,
2) Find the cell containing the term :Jun-18. If Jun18 exists, name the cell to the immediate right as : FY17/18. If the term Jun18 does not exist then,
3)Find the cell containing the term :Jun-19. If Jun19 exists, name the cell to the immediate right as : FY18/19. If the term Jun19 does not exist then,
3)Find the cell containing the term :Jun-20. If Jun20 exists, name the cell to the immediate right as : FY19/20. If the term Jun20 does not exist then,
4)Find the cell containing the term :Jun-21. If Jun21 exists, name the cell to the immediate right as : FY20/21. If the term Jun21 does not exist then,
5)Find the cell containing the term :Jun-22. If Jun22 exists, name the cell to the immediate right as : FY21/22. If the term Jun22 does not exist then, stop the search and end of vba code.
Regards
I have a work book with financial year ending data in all worksheets.
I am looking for VBA code which will loop through all worksheets and does the following :
1) Find the cell containing the term :Jun-17. If Jun17 exists, name the cell to the immediate right as : FY16/17. If the term Jun17 does not exist then,
2) Find the cell containing the term :Jun-18. If Jun18 exists, name the cell to the immediate right as : FY17/18. If the term Jun18 does not exist then,
3)Find the cell containing the term :Jun-19. If Jun19 exists, name the cell to the immediate right as : FY18/19. If the term Jun19 does not exist then,
3)Find the cell containing the term :Jun-20. If Jun20 exists, name the cell to the immediate right as : FY19/20. If the term Jun20 does not exist then,
4)Find the cell containing the term :Jun-21. If Jun21 exists, name the cell to the immediate right as : FY20/21. If the term Jun21 does not exist then,
5)Find the cell containing the term :Jun-22. If Jun22 exists, name the cell to the immediate right as : FY21/22. If the term Jun22 does not exist then, stop the search and end of vba code.
Regards