Need help with VBA. TY.
In the following example, I want the vba to loop through all column R cells where the column Q value is 9. Match the strings in those cells and see if they contain any of the strings in the column U. case insensitive match is fine. If the cell in the column R with column Q=9 does not contain any of the column U strings, delete it. Thank you. If the code works, last two cells should be deleted.
In the following example, I want the vba to loop through all column R cells where the column Q value is 9. Match the strings in those cells and see if they contain any of the strings in the column U. case insensitive match is fine. If the cell in the column R with column Q=9 does not contain any of the column U strings, delete it. Thank you. If the code works, last two cells should be deleted.
Book1 | |||||||
---|---|---|---|---|---|---|---|
Q | R | S | T | U | |||
1 | Theater: | delim1. | |||||
2 | Movie: | delim2. | |||||
3 | delim3. | ||||||
4 | delim4. | ||||||
5 | TITLE1 | delim5. | |||||
6 | delim6. | ||||||
7 | 4 | Eros: Dunn | delim7. | ||||
8 | 4 | Strand shows Abba. | delim8. | ||||
9 | 4 | Regal: Superman | delim9. | ||||
10 | 4 | Roxi shows Cars. | delim10. | ||||
11 | 4 | Metro: Batman | |||||
12 | 4 | Minerva: Starwars | |||||
13 | |||||||
14 | |||||||
15 | |||||||
16 | 5 | Eros shows Superman nextweek. | |||||
17 | 5 | Metro shows Dunn next month. | |||||
18 | 5 | ||||||
19 | TITLE2 | ||||||
20 | 9 | Eros shows Superman nextweek. Delim4. | |||||
21 | 9 | Metro shows Dunn next month. Delim3. Closed today. | |||||
22 | 9 | Delim2. Minerva is showing Abba. | |||||
23 | 9 | Before Metro Roxi shows Cars. | |||||
24 | 9 | After Eros Strand shows Abba. | |||||
Sheet2 |