Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2006

Tip: Looking for answers? Try searching our database.

Adding Hyperlink Text, then deleting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AlieSlavin - 05 Dec 2006 01:40 GMT
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
Jezebel - 05 Dec 2006 02:43 GMT
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

> Hello,
>
[quoted text clipped - 18 lines]
> Thank you,
>      Alison
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.