Hi guys,
I have an excel sheet file that looks like the following
===begin===
Message#: 1
From: abc
BCC:111
test
test
test
===end===
===begin===
Message#: 2
From: xyz
BCC:112
test
test
test
===end===
===begin===
Message#: 3
From: abc
BCC:112
test
test
test
===end===
===begin===
Message#: 4
From: xyz
BCC:114
test
test
test
===end===
I would like to take out all text in between "===begin===" and "===end===" in which the "From" part is not from abc. So the output file would look like the following:
===begin===
Message#: 1
From: abc
BCC:111
test
test
test
===end===
===begin===
Message#: 3
From: abc
BCC:112
test
test
test
===end===
I've thought through this a lot but can not seem to come up with the right solution. Could you guys help me out? It's really sad that I realize the capabilities of excel vb but I'm so helpless when it comes to writing such macro Thanks guys!
Bookmarks