Is it possible to have a vba which looks at a column, and then adds rows before every line that contains a specific string, in my example "shows". Everything else is kept in the same row unless a new line with the specific string occurs. Thank you. I have looked hard about adding rows above and below. I have found ways with single words and single occurrences but not for anything like I am hoping for. Thank you for everyone's help here.
Before
After
Before
Book1 | |||
---|---|---|---|
A | |||
1 | Page 1 shows a large picture. Picture is of a baby. Page 2 shows a cartoon. It is from far side. Page 3 shows today's news. | ||
2 | |||
3 | Page 4 shows sports. Mostly NFL. Page 5 shows ads. | ||
Sheet1 |
After
Book1 | |||
---|---|---|---|
A | |||
1 | Page 1 shows a large picture. Picture is of a baby. | ||
2 | |||
3 | Page 2 shows a cartoon. It is from far side. | ||
4 | |||
5 | Page 3 shows today's news. | ||
6 | |||
7 | Page 4 shows sports. Mostly NFL. | ||
8 | |||
9 | Page 5 shows ads. | ||
Sheet2 |