J
JulesKor
Hi,
I'm trying to set up a Word macro that will search for specific formatting
and wildcard text and will replace the formatting with html code but still
retain the wildcard text.
Our layout program uses a command character represented by the "omega"
symbol (I'll call this OS) which is ascii chr(7) followed by bf (bold face)
if (italic face) nf (normal face), etc.
Eg: "OSbf"Hello"OSnf" or "OSif"Hello"OSnf"
I need this to be replaced with <b>Hello</b> or <i>Hello</i>
I can search for chr(7) & "bf" and replace with "<b>" and I can search for
chr(7) & "if" and replace with "<i>". But it gets confusing when I need to
replace the end chr(7)nf with either "</b>" or "</i>" depending on the
opening tag.
If anyone is able to help, I would be eternally grateful.
I'm trying to set up a Word macro that will search for specific formatting
and wildcard text and will replace the formatting with html code but still
retain the wildcard text.
Our layout program uses a command character represented by the "omega"
symbol (I'll call this OS) which is ascii chr(7) followed by bf (bold face)
if (italic face) nf (normal face), etc.
Eg: "OSbf"Hello"OSnf" or "OSif"Hello"OSnf"
I need this to be replaced with <b>Hello</b> or <i>Hello</i>
I can search for chr(7) & "bf" and replace with "<b>" and I can search for
chr(7) & "if" and replace with "<i>". But it gets confusing when I need to
replace the end chr(7)nf with either "</b>" or "</i>" depending on the
opening tag.
If anyone is able to help, I would be eternally grateful.