Hey everyone,
I can't figure this out..
Basically I have a workbook with several sheets. The macro runs and creates new sheets, so at the end I want to put in a small loop that will color code the worksheets that were just added..
I will have worksheets with DataAM, DataPM, DataMID, etc..
So I want to have the vba change the ones that contain "MID" to yellow, "AM" to red, and "PM" to green..
Anyone have any solutions?
Also with an error function built in if needed to where if the sheet is already the color, then skip it.
I can't figure this out..
Basically I have a workbook with several sheets. The macro runs and creates new sheets, so at the end I want to put in a small loop that will color code the worksheets that were just added..
I will have worksheets with DataAM, DataPM, DataMID, etc..
So I want to have the vba change the ones that contain "MID" to yellow, "AM" to red, and "PM" to green..
Anyone have any solutions?
Also with an error function built in if needed to where if the sheet is already the color, then skip it.
Last edited: