> Hi folks,
>
[quoted text clipped - 37 lines]
>
> -- LW
I know you never use anything I suggest Lauren but, perhaps, this will
help someone else who comes upon this thread.
I have a function I use to strip HTML tags from text:
Public Function StripHTMLTags( _
ByVal HTML As String) As String
Dim a() As String
Dim v As Variant
a() = Split(HTML, "<")
For Each v In a
StripHTMLTags = StripHTMLTags & Mid$(v, InStr(v, ">") + 1)
Next v
End Function
It's easily revised to do what I !!!!think!!!! you want to do:
Public Function StripOAFormattingCommands( _
ByVal OAString As String) As String
Dim a() As String
Dim v As Variant
a() = Split(OAString, "{")
For Each v In a
StripOAFormattingCommands = StripOAFormattingCommands & Mid$(v,
InStr(v, "}") + 1)
Next v
End Function
When applied to your sentence
> Those of you who have used them know they look like this: "{cf 5}" or
> "{cf 0}" or "{ul 1}" or "{ul 0}", etc.
StripOAFormattingCommands returns
Those of you who have used them know they look like this: "" or "" or ""
or "", etc.
Perhaps, one will want to add something to remove the [""]'s.
BTW, the fourth parameter of the Replace Function specifies the character
at which to begin the Replace, not the number of characters to be
replaced:
start
Optional. Position within expression where substring search is to begin.
If omitted, 1 is assumed.

Signature
Lyle Fairfield
Lauren Wilson - 31 Jan 2006 21:09 GMT
>> Hi folks,
>>
[quoted text clipped - 39 lines]
>
>I know you never use anything I suggest Lauren
I don't? Lyle, I'm hurt that you think I would be so callous. At the
moment I don't KNOW if I have or have not used any of your
suggestions, but I ALWAYS appreciate the efforts of you and others who
post such helpful things here. The fact is that I learn new things
from many posts whether or not I end up using the exact technique
described in one. Please Lyle, never assume you are not appreciated.
I will DEFINITELY give the code below a try. Thanks very much.
>but, perhaps, this will
>help someone else who comes upon this thread.
[quoted text clipped - 38 lines]
>Optional. Position within expression where substring search is to begin.
>If omitted, 1 is assumed.
Lauren Wilson - 31 Jan 2006 23:23 GMT
WOW Lyle! It worked perfectly with ZERO modification. You are
awesome. Thanks a bunch.
-- LW
>> Hi folks,
>>
[quoted text clipped - 80 lines]
>Optional. Position within expression where substring search is to begin.
>If omitted, 1 is assumed.
rkc - 31 Jan 2006 23:36 GMT
> BTW, the fourth parameter of the Replace Function specifies the character
> at which to begin the Replace, not the number of characters to be
[quoted text clipped - 3 lines]
> Optional. Position within expression where substring search is to begin.
> If omitted, 1 is assumed.
Not to mention any part of the string before the optional start position
is dropped.