Adding Hyperlink Text, then deleting

A

AlieSlavin

Hello,

So, I have a big macro in Word 2003 that I've been working on that keeps
growing. The end goal is to have a complete script to convert a Word
document into a wiki formatted document (for posting on our internal wiki).
I've got most of it down, but hitting a snag with changing hyperlinks into
wiki formatted text.

First, I need to find the hyperlinks, then I need to add wiki formatting in
front of them and after them, then delete the hyperlink itself.

To add to the issue, a significant number of my hyperlinks are tied to
shapes so when I delete all hyperlinks - it removes them completely, leaving
the shape but no address.

Can you please help?

Thank you,
Alison
 
J

Jezebel

It would be easier if you posted exactly what you need to end up with,
particularly for the shapes. For the text links, you should be able to use
something like --

With myHyperlink
.Range = "[" & .Address & " " & .TextToDisplay & "]"
End with
 

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