spectraflame
Well-known Member
- Joined
- Dec 18, 2002
- Messages
- 830
- Office Version
- 365
- Platform
- Windows
I have been asked to take a list of data, which changes each time it is imported into Excel, and divide the sheet into 3 groups by color using a macro. The sheet contains meter information and the color coding denotes which year each should be tested in. I realize that since the list of meters is going to change, there may not be an equal number of meters in each highlighted group but that is OK.
My guess is that I would need to determine the number of used rows (column C is the first column in the sheet that contains data in ever row) and divide by 3. The rest would then have to be pasted to a Select statement so the macro could highlight them. Then with desire rows selected, choose a highlight color. Typing it out makes it sound easy but I have no idea is something like this is even possible.
My other thought was to number each row by 3's. I could then just sort the list to determine the desired test year.
If it matters, the sheet in question has less than 400 rows.
If you have a better idea, I am open to anything.
My guess is that I would need to determine the number of used rows (column C is the first column in the sheet that contains data in ever row) and divide by 3. The rest would then have to be pasted to a Select statement so the macro could highlight them. Then with desire rows selected, choose a highlight color. Typing it out makes it sound easy but I have no idea is something like this is even possible.
My other thought was to number each row by 3's. I could then just sort the list to determine the desired test year.
If it matters, the sheet in question has less than 400 rows.
If you have a better idea, I am open to anything.