Hi Community,
This is a common question I know, I've been silently snooping around for an answer to my question but couldn't find one that fits my code, so here I am! I'm trying to delete rows between two varying ranges which sometime repeat (more on that later). I'm currently importing chunks of data into excel (column A only), each chunk of data starts with the text Substantial Shareholders and ends with the text Portfolio.
[TABLE="width: 568"]
[tr]
[td]
Chunk 1:
Substantial Shareholders
Company Secretary
Fax No.
STUFF TO DELETE
STUFF TO DELETE
...
Portfolio
[/td]
[/tr]
[tr]
[td]
Chunk 2 - X:
Substantial Shareholders (may have multiple on top of each other, seperate rows)
Company Secretary
Fax No.
STUFF TO DELETE
STUFF TO DELETE
...
Portfolio
[TABLE="width: 568"]
[tr]
[td]
From the above I need to delete starting from Fax No. to Substantial Shareholders in the next data chunk and repeat for all the remaining data chunks. However as mentioned earlier, sometimes there are more than one Substantial Shareholder meaning the code I'm using does not know where to stop. If I try using Portfolio + 1, it only loops through the first two chunks of data (doing what I want) but leaving the remaining chunks untouched. I'm sorry if this is a little confusing but I'm not sure how to get this done, I'd appreciate some help!
[/td]
[/tr]
[/TABLE]
[/td]
[/tr]
[/TABLE]