Hi Dan,
Sub Test444a()
Dim rDcm As Range
Set rDcm = ActiveDocument.Range
With rDcm.Find
.Text = "(\<b\>)(*)(\</b\>)"
.MatchWildcards = True
.Replacement.Text = "\2"
.Replacement.Font.Bold = True
.Execute Replace:=wdReplaceAll
End With
End Sub
Which will work for a situation,
where tags were applied systematically, like
<u><i><b>bold</b></i></u>
for underline, italic, bold.
Not at random.
You would have to process bold, italic, underline in that order.
>Yes, I want to delete each pair of tags at the same time that I bold
>or italicize the text between them.
See Above.
>Anything that looks like a tag
>but is not used in a formatting change should be left in place.
No way, almost.
Computers don't like fuzzyness like "like".
You could set up a list of allowed tags.
With pointed brackets interspersed at random in
your text, things will get very difficult to handle.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Russ - 10 Oct 2007 08:08 GMT
Dan,
Is everything coming in pre-tagged?
Or you manually applying tags first?
(I hope not, since you want to delete the tags, then tagging seems like an
unnecessary extra step.)
One useful tool in Word is the format painter icon (usually next to the cut,
copy, and paste icons).
---------------
From Word Help:
Copy all formatting from one object to another
1. Click the object that contains the formatting you want to copy.
2. Click Format Painter , and then click the object you want to copy the
formatting to.
Tip You can copy all formatting of an object to several objects by
double-clicking Format Painter, and then selecting several objects in
succession. Click Format Painter again when you're done.
See also
Copy only the look and style of text
---------------
And if you'd rather use the keyboard:
Copy formatting from text.
CTRL+SHIFT+C
Apply copied formatting to text.
CTRL+SHIFT+V
> Hi Dan,
>
[quoted text clipped - 31 lines]
> With pointed brackets interspersed at random in
> your text, things will get very difficult to handle.

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Dan Neely - 10 Oct 2007 13:16 GMT
> Dan,
> Is everything coming in pre-tagged?
Yes. I'm using a 3rd party document generation tool. While it
outputs to word format the backend only stores plain text in the
database. I'll have to manually tag the source data the first time,
but it's a step forward from having to do the same to the output every
time a new version is generated.
Russ - 10 Oct 2007 19:11 GMT
Dan,
Have you played around with saving a normally formatted Word .doc file as
.html or .xml from Word, storing that markup version in the database, and
then opening the file from the database into to Word again to see what
formatting sticks?
>> Dan,
>> Is everything coming in pre-tagged?
[quoted text clipped - 4 lines]
> but it's a step forward from having to do the same to the output every
> time a new version is generated.

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Dan Neely - 10 Oct 2007 20:57 GMT
> Dan,
> Have you played around with saving a normally formatted Word .doc file as
> .html or .xml from Word, storing that markup version in the database, and
> then opening the file from the database into to Word again to see what
> formatting sticks?
It's a 3rd party (Rational) system and the frontend only takes text
(unicode?) input. The app doing the pull is from the same source, and
I don't have access to the DB directly. Even if I could muddle there,
writing a new entry app is out of the question, as is letting the
average user directly edit the table. Typing a few HTMLesque tags is
within the expected level of skill.