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 / June 2007

Tip: Looking for answers? Try searching our database.

Breaking up a string that part is hyperlink and part is normal text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce - 15 Jun 2007 19:12 GMT
I have a list of sites that have some text at the end.

This list is formated like this

hyperlink<space>city,<space>state

I would like to get this list to a format such as
hyperlink<some searchable char like a tilde> city, state.
The hyperlink text is usually the company name, so there is not the .htm or
html in it.

What I am trying to do is to get this into a list that I can put into a
table broken down to 2 columns 1 with the hyperlink, and one with the
location

Thanks!
Bruce
Bear - 15 Jun 2007 20:22 GMT
Bruce:

This seems to work.

Sub X()

Dim objLink As Hyperlink

For Each objLink In ActiveDocument.Hyperlinks
   objLink.Range.InsertAfter "~"
Next objLink

End Sub
Signature

Windows XP, Word 2000

 
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.