Hello,
I'm using Excel 2013. I'm looking for a VB macro solution.
I want to find <b>Hello</b> in any cell and find <b>Good morning</b> in any other cell along the same row. Then I want to delete (clear contents) all values in all the cells in between <b>Hello</b> & <b>Good morning</b>. I want to loop through the entire used range of the worksheet & delete any such occurrence. <b>Hello</b> will always be on the left hand side of <b>Good morning</b>.
Explained in a different way:
Cell A3 contains <b>Hello</b>
Cell A4 - A6 could contain some text or might be blank
Cell A7 contains <b>Good morning</b>
Under such circumstances, the macro should delete (clear contents) everything in Cell A4 - A6.
Could you help me with the code please?
Thanks
I'm using Excel 2013. I'm looking for a VB macro solution.
I want to find <b>Hello</b> in any cell and find <b>Good morning</b> in any other cell along the same row. Then I want to delete (clear contents) all values in all the cells in between <b>Hello</b> & <b>Good morning</b>. I want to loop through the entire used range of the worksheet & delete any such occurrence. <b>Hello</b> will always be on the left hand side of <b>Good morning</b>.
Explained in a different way:
Cell A3 contains <b>Hello</b>
Cell A4 - A6 could contain some text or might be blank
Cell A7 contains <b>Good morning</b>
Under such circumstances, the macro should delete (clear contents) everything in Cell A4 - A6.
Could you help me with the code please?
Thanks