R
robot
Hi all,
I would like to write code to unlink all hyperlinks in a given range.
I try my code on plain text and it works fine. But with a table (which
consists of a single hyperlink in each cell), I found that if Rng is a
column of cells in the table, the expression Rng.Hyperlinks.count returns
MORE than the actually number of hyperlinks. For example, if Rng comprises
the two cells cell(1,2) and cell(2,2), the hyperlink in cell(1,3) will also
be included in Rng.Hyperlinks, so the result for Rng.Hyperlinks.count is 3.
How do I tackle this problem? Any suggestions would be appreciated.
I use Word XP and Win XP.
I would like to write code to unlink all hyperlinks in a given range.
I try my code on plain text and it works fine. But with a table (which
consists of a single hyperlink in each cell), I found that if Rng is a
column of cells in the table, the expression Rng.Hyperlinks.count returns
MORE than the actually number of hyperlinks. For example, if Rng comprises
the two cells cell(1,2) and cell(2,2), the hyperlink in cell(1,3) will also
be included in Rng.Hyperlinks, so the result for Rng.Hyperlinks.count is 3.
How do I tackle this problem? Any suggestions would be appreciated.
I use Word XP and Win XP.