code:
Sub ReplaceElementAttributes()
Dim objDoc As FPHTMLDocument
Dim objElement As IHTMLElement
Dim strTempText As String
Const CHARACTER_LENGTH As Integer = 7
Const STRING_FOUND As Integer = 1
Const TAG_NAME As String = "a"
Const ATTRIBUTE_NAME As String = "href"
Const TARGET_STRING As String = "http://"
Set objDoc = ActiveDocument
' Remove "http://" from the href attribute of all
' A elements in the document.
For Each objElement In objDoc.all.tags(tagName:=TAG_NAME)
strTempText = objElement.getAttribute _
(strAttributeName:=ATTRIBUTE_NAME)
' Remove "http://" only if it appears at the beginning
' of the href attribute's value.
If InStr(strTempText, TARGET_STRING) = STRING_FOUND Then
strTempText = Right(strTempText, _
Len(strTempText) - CHARACTER_LENGTH)
End If
Next objElement
End Sub
I found that on msdn
here
you could use that and the link url is in 'strTempText' then u could do like
code:
wb.navigate strTempText