I have asked some similar questions before, and usually I get these things eventually. But wild card type things are some strange exception with me : I must have a real psychological problem with them: When I think about them my brain seriously flips out and I can’t think of anything for the rest of the day… :(
Can anyone please help put me out of my misery.
Lets say I have some text like this in word
Code: Select all
Ahdahdjjkkjh [COLOR=black][b]This will usually be black anyway[/b], not [color=orange]orange[/color], ([/COLOR] [color=purple]Purple[/color] [COLOR=black] is my favourite ) so I really don’t need the black color BB Code tag pairs [/COLOR] shfdlkfahfafhhfhf
https://i.postimg.cc/mr1VXK9c/Highlight ... -pairs.jpg I would like VBA code to get rid of just the black BB code tag pairs but not mess up any of the other BB code tags. So the result I want after running the code is like
https://i.postimg.cc/7Yd1TfF7/Redundant ... emoved.jpg
Code: Select all
Ahdahdjjkkjh [b]This will usually be black anyway[/b], not [color=orange]orange[/color], ( [color=purple]Purple[/color] is my favourite ) so I really don’t need the black color BB Code tag pairs shfdlkfahfafhhfhf
Thanks
Alan
( P.S. I have German Office and my separator is a semi colon
;
instead of a comma
,
I think that sometimes chucks a spanner in the works… )
Edit: P.S. 2 I suppose if anyone knows how to do it manually with the find replace dialogue stuff, then it may be possible to get some coding from the macro recorder