Hi again... I have a workbook with more than 600 worksheets and i'm tring to buid a code that erase the data on specific cells range. I need a code that finds all name sheets that start as "TT", because the day sheets are named as TTJan1, TTJan2, TTJan3, etc, and erase the data in range AE16:ME516 (this code will erase the data in this range in 365 sheets - the range is the same in this 365 sheets). The in the same code, the same thing but for the month sheets which the name of the sheet varies with the month name, so i have 12 more sheets named January, February, March, etc, and the range in this 12 sheets is BW14:BZ44 (The range is the same in this 12 sheets).
I came across with a code that works, the problem is that i have to write 377 line with every sheet name and range 8which is the same):
But this code is quite extense... I know there is a way to search for TT and the others 12 sheets (months) as array and then clearcontents on the specific ranges but dont know how to build it...
EDIT: In TTSep8 the range is the same of the other TT sheets, AE16:ME516. It was a error of copy paste.
Bookmarks