Changing text to Hyoerlinks in a Table...

D

Don

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
 
J

Jay Freedman

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

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

Don

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


Jay Freedman said:
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

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

Jay Freedman

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

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


Jay Freedman said:
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

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.
 

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