Hello everyone!
I have a small problem and I'm wondering if it can be done with VBA.
I have cells with text (comments) in them. I need to clean up the text and keep only the last comment in the cell. For example, one cell is displayed like this:
[26/07/2012] <JohnDoe> Rate confirmed
[25/07/2012] <JohnDoe> Waiting for rate
Those 2 lines are only once cell. It can also be written this way: [26/07/2012] <JohnDoe> Rate confirmed[25/07/2012] <JohnDoe> Waiting for rate
I need to keep the last comment on the left or top (with or without the date within brackets and with or with the angle brackets, it does not matter) and delete everything that's on the right from the first bracket.
So I need this:
[26/07/2012] <JohnDoe> Rate confirmed
or I need this:
Rate confirmed
Here, only the last comment is kept and everything on the right was deleted. I need to do this many times in multiples cells, that's why I need a maco.
Do you think it's possible?
Can I write a code saying to delete everything on the right starting from the second pair of brackets?
I considered using <*> but the problem is that it keeps the comments on the right
I would really appreciate your help guys!
Thx a lot!
Bookmarks