How to convert string to temporary range so that we can get functionality of range object to work with string. For example I am doing something like this.
Edit
I have in word table cell 2
With ActiveDocument.Range
For Each Tbl In .Tables
With Tbl
For i = 1 To .Rows.Count
With .Cell(i, 2).Range
If .Hyperlinks.Count > 0 Then
HttpReq.Open "GET", .Hyperlinks(1).Name, False
HttpReq.send
oHtml.body.innerHTML = HttpReq.responseText
StrTxt = oHtml.body.innerText
'missing lne something like set rng.Text = StrTxt
'this part is also not working, but I think I will be able to do it if I get above part working
If rng.Find.Execute(findText:="Abstract:") Then
Set Rng1 = rng( _
Start:=docnew.Paragraphs(1).Range.Start, _
End:=docnew.Paragraphs(2).Range.End)
MsgBox Rng1.Text
With Tbl.Cell(i, 3).Range
.FormattedText = Rng1.FormattedText
End With
End If
End if
Next
End with
Next
End With
This macro is not working so I can't say weather this is right or wrong to do by this mehtod. It's just an Idea. Is it possible to dim a temp rng? Is there any better option available to my problem?