tinneytwin
New Member
- Joined
- May 9, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I need a VBA Code that will first look at the rows in Column F for matching data AND look in Column C for matching data (F & C will never match). For instance, if F2, F3, F4, F5, and F6 all match, then it needs to look in C2, C3, C4, C5, C6. For the rows in C that match (with the corresponding F matches), I need them to be highlighted. And keep repeating that pattern until all rows are highlighted.
I have a small portion of the data pictured here to show what I mean because it's hard to explain. In my picture, all column F are the same (only because this is a small portion of the data) but column C is different so I have them grouped/highlighted by F first then C. Column C is the name of a video and Column F is a date (with other information that I have truncated). The excel document will have thousands of rows it will need to go through and highlight. Right now I do this manually and it takes me forever because I have 26 different excel documents with thousands of rows in each document. I originally got VBA macro codes from someone who said they knew how to code macros, but none of their macro coding worked. I know nothing about coding.
(the colors don't have to be different. It could rotate back and forth between two colors)
I have a small portion of the data pictured here to show what I mean because it's hard to explain. In my picture, all column F are the same (only because this is a small portion of the data) but column C is different so I have them grouped/highlighted by F first then C. Column C is the name of a video and Column F is a date (with other information that I have truncated). The excel document will have thousands of rows it will need to go through and highlight. Right now I do this manually and it takes me forever because I have 26 different excel documents with thousands of rows in each document. I originally got VBA macro codes from someone who said they knew how to code macros, but none of their macro coding worked. I know nothing about coding.
(the colors don't have to be different. It could rotate back and forth between two colors)