A
alek.nazarian
Hi all
Just , take a look to this code .
sub deleteAllHyperlinks()
Dim HyperlinksCount as Integer
HyperlinksCount = Selection.range.hyperlinks.count
For i=1 to HyperlinksCount
Selection.Range.Hyperlinks(i).Delete
Next i
End Sub
try selecting a range of text that contains hyperlinks and then execute
this sub-routine . the first iteration of the loop will execute
successfully but the second iteration craps down !
The funniest thing that the third or forth iteration executed
successfully
thanks !
Just , take a look to this code .
sub deleteAllHyperlinks()
Dim HyperlinksCount as Integer
HyperlinksCount = Selection.range.hyperlinks.count
For i=1 to HyperlinksCount
Selection.Range.Hyperlinks(i).Delete
Next i
End Sub
try selecting a range of text that contains hyperlinks and then execute
this sub-routine . the first iteration of the loop will execute
successfully but the second iteration craps down !
The funniest thing that the third or forth iteration executed
successfully
thanks !