Suppress "Hyperlink" char style when generating links?

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.
 
K

Klaus Linke

I guess you need to disable the "AutoFormat as you type" option to replace
internet and network paths with hyperlinks (in Tools > AutoCorrect
options...).
You may also need to turn hyperlinks that have already been created into
regular text (... say locating them with Edit > Goto > Field, HYPERLINK,
then unlink the field with Ctrl+Shift+F9).

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top