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 / October 2005

Tip: Looking for answers? Try searching our database.

Changing text to Hyoerlinks in a Table...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don - 11 Oct 2005 19:37 GMT
I have a table in a Word document.  One of the columns of the table has text
the SHOULD be a hyperlink, although it is appearing as plain text.  Is is
possible to easily cycle through each row of the table and chage the text in
that specific cell to a hyperlink?

I have to do this with various tables, each of which might have a different
number of rows.

 ActiveDocument.Hyperlinks.Add _
     Anchor:=Selection.Range, _
     Address:=Selection.Text

I suppose this is a start, but it doesn't delete the original plain next and
I would think I would need to write a loop that goes through each of the
rows.  I wouldn't want to have to select each cell one by one...

Thanks in advance for any insight
Jay Freedman - 12 Oct 2005 02:41 GMT
>I have a table in a Word document.  One of the columns of the table has text
>the SHOULD be a hyperlink, although it is appearing as plain text.  Is is
[quoted text clipped - 13 lines]
>
>Thanks in advance for any insight

Hi Don,

While it would certainly be possible to solve the programming problem,
there's a much easier and faster solution.

Go to Tools > AutoCorrect Options > AutoFormat [note: this is *not*
the AutoFormat As You Type tab, just AutoFormat]. Uncheck everything
except the one box for "Internet and network paths with hyperlinks".
Click OK.

Now click Format > AutoFormat, and click OK in the dialog that
appears. All your hyperlinks will be created in place.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Don - 12 Oct 2005 14:32 GMT
Jay...

Is Format > AutoFormat exclusive to Word 2003?  Although I see the first
steps very clearly, I don't see a option for AutoFormat under the Format
menu.....

> >I have a table in a Word document.  One of the columns of the table has text
> >the SHOULD be a hyperlink, although it is appearing as plain text.  Is is
[quoted text clipped - 31 lines]
> Jay Freedman
> Microsoft Word MVP        FAQ: http://word.mvps.org
Jay Freedman - 13 Oct 2005 03:22 GMT
No, I see Format > AutoFormat in Word 2000. It may have been in Word
97 but I don't have that loaded.

Look again. If it really isn't there (and I assume you have adaptive
menus turned off, or else you've clicked the arrow at the bottom of
the menu to see all the entries), then see
http://www.word.mvps.org/FAQs/Customization/RestoreMenuCmd.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org

>Jay...
>
[quoted text clipped - 37 lines]
>> Jay Freedman
>> Microsoft Word MVP        FAQ: http://word.mvps.org
 
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.