C
cushlomockree
Hi,
I have a macro with some code that creates internal links to
bookmarks.
The words that are being made into links already have character styles
applied to them for a certain look.
These words are chemicals that contain greek symbols, superscripts,
subscripts, as well as normal letters.
In order to give them the same look, 4 character styles exist to deal
with each case.
When my code selects the entire word to create the link, the
"Hyperlink" char style is automatically applied obliterating the
previously applied styles for greek symbols(Symbol Font),
superscripts, and subscripts.
Is there any way to prevent this without reapplying the previous
styles after the link is generated?
I've already tried deleting the Hyperlink style, but it is recreated
as soon as a new link is generated.
I have a macro with some code that creates internal links to
bookmarks.
The words that are being made into links already have character styles
applied to them for a certain look.
These words are chemicals that contain greek symbols, superscripts,
subscripts, as well as normal letters.
In order to give them the same look, 4 character styles exist to deal
with each case.
When my code selects the entire word to create the link, the
"Hyperlink" char style is automatically applied obliterating the
previously applied styles for greek symbols(Symbol Font),
superscripts, and subscripts.
Is there any way to prevent this without reapplying the previous
styles after the link is generated?
I've already tried deleting the Hyperlink style, but it is recreated
as soon as a new link is generated.